- 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:
parent
74fc927297
commit
5de20407af
@ -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
8
zsh/aliases/10-arch.conf
Normal 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
|
0
zsh/defaults/aliases/.gitkeep
Normal file
0
zsh/defaults/aliases/.gitkeep
Normal file
@ -1,2 +1,2 @@
|
||||
# This file is used to override EDITOR variable.
|
||||
EDITOR="nano"
|
||||
export EDITOR="nano"
|
||||
|
@ -65,4 +65,4 @@ $vars['console']$p_path $p_end"
|
||||
|
||||
}
|
||||
|
||||
prompt_pztrn_setup "$@"
|
||||
prompt_pztrn_setup
|
||||
|
Loading…
Reference in New Issue
Block a user