From f7ebcf11da4102d904427d7738aa5190b825d934 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 23 Apr 2021 14:59:04 +0530 Subject: bind port function --- zsh/.zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 0013e1b..f9df05f 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -24,7 +24,6 @@ alias f="ranger" alias weather="curl wttr.in" alias py="/usr/bin/python" alias pg="ping google.com" -alias pubip="curl ipinfo.io/ip" alias k="pkill " alias m="cmus" alias vimrc="vim $HOME/.config/nvim/init.vim" @@ -39,7 +38,7 @@ up() { } dict() { - curl dict://dict.org/d:$* + curl dict://dict.org/d:$* | less } sip() { @@ -60,6 +59,10 @@ deploy() { rsync --rsync-path "sudo -u www-data rsync" -avP --delete ~/src/site/dst/ rem:site/ } +bind() { + ssh -L localhost\:$1\:localhost\:$1 $2 +} + # Enable colors and change prompt: autoload -U colors && colors fpath+=$HOME/.cache/zsh/pure -- cgit v1.2.3