alias tf='tail -25f'
alias l='ls -lF'
alias la='ls -laF'
+alias less='less -R'
alias clr='clear'
alias cls='clear'
alias d='date'
fi
function ssh-forget() {
- sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+ sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts
}
function ssh-learn() {
- sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+ sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts
ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts
}
echo $(cd $relpath; pwd -P)/$(basename $1)
return 0
}
+
+function sayStatus () { local _status=$?; if [[ $_status -eq 0 ]]; then say "Success"; else say "Failed"; fi; return $_status }