]> git.alrj.org Git - zsh.d.git/blobdiff - S50_aliases
Add a wrapper for mc to stay in current directory upon exit
[zsh.d.git] / S50_aliases
index 0b891b30ad1f59fb681fd57da8c24da9d18cfa4a..1be71a610ac502e45388046122877c0037cf4b21 100644 (file)
@@ -26,29 +26,7 @@ then
   alias adist-upgrade="sudo apt-get dist-upgrade"
   alias aremove="sudo apt remove"
   alias aaremove="sudo apt autoremove"
-fi
-
-if [ -f /etc/SuSE-release ]
-then
-  if [ -x /usr/bin/smart ]
-  then
-    # aliases for smart, if it's present
-    alias search="smart search"
-    alias show="smart info"
-    alias update="sudo smart update"
-    alias install="sudo smart install"
-    alias remove="sudo smart remove"
-    alias upgrade="sudo smart upgrade"
-  else
-    # Aliases for zypper
-    alias search="zypper -R search -d"
-    alias show="zypper -R info"
-    alias update="sudo zypper refresh"
-    alias install="sudo zypper install"
-    alias remove="sudo zypper remove"
-
-    alias upgrade="sudo zypper update"
-  fi
+  alias aclean="sudo apt clean"
 fi
 
 # to avoid the cd in mc history :
@@ -56,6 +34,7 @@ setopt histignorespace
 alias cd=' builtin cd'
 
 alias scr='screen -rd'
+alias tm='tmux attach -d'
 
 # Konsole tab renaming. Courtesy of Sebastian Kuegler
 # http://vizzzion.org/?blogentry=737