- EDITOR variable export fixed.

- Aliases now can be loaded from "aliases" directory, both in $HOME and in sources tree.
- Some useful aliases for Arch Linux added.
This commit is contained in:
Stanislav Nikitin 2015-03-12 20:09:24 +05:00
parent 74fc927297
commit 5de20407af
5 changed files with 20 additions and 2 deletions

View File

@ -6,3 +6,13 @@ alias screen="TERM=xterm screen"
# Other
alias clocksync="sudo ntpdate 0.pool.ntp.org"
alias got="git"
for item in `ls ${CONFIG_PATH}/zsh/aliases`; do
source ${CONFIG_PATH}/zsh/aliases/${item}
done
if [ -d "${HOME}/.zsh-config.d/aliases" ]; then
for item in `ls ${HOME}/.zsh-config.d/aliases`; do
source ${HOME}/.zsh-config.d/aliases/${item}
done
fi

8
zsh/aliases/10-arch.conf Normal file
View File

@ -0,0 +1,8 @@
# Some good default aliases for Arch Linux.
if [ "${OS_RELEASE/ARCH}" != "${OS_RELEASE}" ]; then
alias yasearch="yaourt -Ss"
alias yadel="yaourt -Rddd"
alias yainstall="yaourt -S"
alias sysupdate="yaourt -Syua"
fi

View File

View File

@ -1,2 +1,2 @@
# This file is used to override EDITOR variable.
EDITOR="nano"
export EDITOR="nano"

View File

@ -65,4 +65,4 @@ $vars['console']$p_path $p_end"
}
prompt_pztrn_setup "$@"
prompt_pztrn_setup