diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 76b1b68..69e01b6 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -13,6 +13,14 @@ termcompat() { TERM=$term command $@ } +addpath() { + typeset newpath=$1 + if [[ ! $PATH =~ $newpath ]]; then + PATH+=:$newpath + export PATH + fi +} + fsf() { typeset host prompt="SSH Remote > " host=$(cut -d\ -f1 $HOME/.ssh/known_hosts | sort -u | fzf --prompt=$prompt) || return 1