summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/common/alias.sh7
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