zsh: updated functions
This commit is contained in:
parent
1887185b4c
commit
469f9049be
1 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,14 @@ termcompat() {
|
||||||
TERM=$term command $@
|
TERM=$term command $@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addpath() {
|
||||||
|
typeset newpath=$1
|
||||||
|
if [[ ! $PATH =~ $newpath ]]; then
|
||||||
|
PATH+=:$newpath
|
||||||
|
export PATH
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
fsf() {
|
fsf() {
|
||||||
typeset host prompt="SSH Remote > "
|
typeset host prompt="SSH Remote > "
|
||||||
host=$(cut -d\ -f1 $HOME/.ssh/known_hosts | sort -u | fzf --prompt=$prompt) || return 1
|
host=$(cut -d\ -f1 $HOME/.ssh/known_hosts | sort -u | fzf --prompt=$prompt) || return 1
|
||||||
|
|
Loading…
Reference in a new issue