diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-04-23 09:29:04 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-04-23 09:29:04 +0000 |
commit | f7ebcf11da4102d904427d7738aa5190b825d934 (patch) | |
tree | 9eb9b4daedcd987375fac3e6dddc0d556dbe22df /zsh | |
parent | bbf0233b103e7d7ca48736fd2cdd7ce0f6a3a076 (diff) |
bind port function
Diffstat (limited to 'zsh')
-rwxr-xr-x | zsh/.zshrc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -24,7 +24,6 @@ alias f="ranger" | |||
24 | alias weather="curl wttr.in" | 24 | alias weather="curl wttr.in" |
25 | alias py="/usr/bin/python" | 25 | alias py="/usr/bin/python" |
26 | alias pg="ping google.com" | 26 | alias pg="ping google.com" |
27 | alias pubip="curl ipinfo.io/ip" | ||
28 | alias k="pkill " | 27 | alias k="pkill " |
29 | alias m="cmus" | 28 | alias m="cmus" |
30 | alias vimrc="vim $HOME/.config/nvim/init.vim" | 29 | alias vimrc="vim $HOME/.config/nvim/init.vim" |
@@ -39,7 +38,7 @@ up() { | |||
39 | } | 38 | } |
40 | 39 | ||
41 | dict() { | 40 | dict() { |
42 | curl dict://dict.org/d:$* | 41 | curl dict://dict.org/d:$* | less |
43 | } | 42 | } |
44 | 43 | ||
45 | sip() { | 44 | sip() { |
@@ -60,6 +59,10 @@ deploy() { | |||
60 | rsync --rsync-path "sudo -u www-data rsync" -avP --delete ~/src/site/dst/ rem:site/ | 59 | rsync --rsync-path "sudo -u www-data rsync" -avP --delete ~/src/site/dst/ rem:site/ |
61 | } | 60 | } |
62 | 61 | ||
62 | bind() { | ||
63 | ssh -L localhost\:$1\:localhost\:$1 $2 | ||
64 | } | ||
65 | |||
63 | # Enable colors and change prompt: | 66 | # Enable colors and change prompt: |
64 | autoload -U colors && colors | 67 | autoload -U colors && colors |
65 | fpath+=$HOME/.cache/zsh/pure | 68 | fpath+=$HOME/.cache/zsh/pure |