diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-05 12:58:04 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-05 12:58:04 +0100 |
commit | 50a5960367ebec71041a8d27f9b053e7b838470e (patch) | |
tree | f193ac30275b1c68d88447e332433c6faad753e1 /bashrc/common | |
parent | 8fe926fa3684d5ceebee2edf3ef7052c11e258c0 (diff) | |
download | dotfiles-50a5960367ebec71041a8d27f9b053e7b838470e.tar.gz dotfiles-50a5960367ebec71041a8d27f9b053e7b838470e.tar.xz dotfiles-50a5960367ebec71041a8d27f9b053e7b838470e.zip |
alias nano to pico if only pico is available
Diffstat (limited to 'bashrc/common')
-rw-r--r-- | bashrc/common/alias.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bashrc/common/alias.sh b/bashrc/common/alias.sh index a915ec3..d21cc87 100644 --- a/bashrc/common/alias.sh +++ b/bashrc/common/alias.sh @@ -13,6 +13,13 @@ alias ....="cd ../../.." # make default what should be default alias sudo="sudo -H" +# some distibutions (e.g. SuSE) has no nano but pico +if ! hash nano > /dev/null 2>&1 ; then + if hash pico > /dev/null 2>&1 ; then + alias nano="pico" + fi +fi + # mkdir + chdir mkcd() { mkdir -p $1 && cd $1 |