From e08f748d39ccba3e7a6413c579864f02e6a804b74bfcc04417f3012d21f0e98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 15 Apr 2020 09:06:05 +0000 Subject: [PATCH] - Add aliases from /etc/bash.bashrc into /etc/zshrc so we don't regress OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=221 --- zsh.changes | 6 ++++++ zshrc | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/zsh.changes b/zsh.changes index 57bce80..b2ca0f3 100644 --- a/zsh.changes +++ b/zsh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 15 09:02:14 UTC 2020 - Ismail Dönmez + +- Add aliases from /etc/bash.bashrc into /etc/zshrc so we don't + regress + ------------------------------------------------------------------- Wed Apr 8 06:04:06 UTC 2020 - Ismail Dönmez diff --git a/zshrc b/zshrc index 7307a03..80e8d3b 100644 --- a/zshrc +++ b/zshrc @@ -247,5 +247,25 @@ if [[ "$ZSHEDIT" == "emacs" ]] then bindkey "^^[[B" down-history fi +# Aliases exported from /etc/bash.bashrc +alias ..='cd ..' +alias ...='cd ../..' +alias beep='echo -en "\007"' +alias cd..='cd ..' +alias dir='ls -l' +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' +alias grep='grep --color=auto' +alias l='ls -alF' +alias la='ls -la' +alias ll='ls -l' +alias ls-l='ls -l' +alias md='mkdir -p' +alias o=less +alias rd=rmdir +alias unmount='echo "Error: Try the command: umount" 1>&2; false' +alias which-command=whence +alias you='if test "$EUID" = 0 ; then /sbin/yast2 online_update ; else su - -c "/sbin/yast2 online_update" ; fi' + # Read custom system-wide config if exists test -s /etc/zsh.zshrc.local && . /etc/zsh.zshrc.local