mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-04-25 08:27:18 +00:00
Edited zshrc
This commit is contained in:
parent
4c562591c6
commit
8311b14562
14
zshrc
14
zshrc
@ -116,7 +116,6 @@ alias du='show_which du && du -k --total --human-readable'
|
|||||||
alias less='vimpager'
|
alias less='vimpager'
|
||||||
alias zless='vimpager'
|
alias zless='vimpager'
|
||||||
alias rm='show_which rm && rm -I'
|
alias rm='show_which rm && rm -I'
|
||||||
alias yatest='show_which yatest && yaourt --config /etc/pactest.conf'
|
|
||||||
su () {
|
su () {
|
||||||
checksu=0
|
checksu=0
|
||||||
for flags in $*; do
|
for flags in $*; do
|
||||||
@ -131,6 +130,18 @@ su () {
|
|||||||
/usr/bin/su $*
|
/usr/bin/su $*
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
pacman () {
|
||||||
|
/usr/bin/sudo /usr/bin/pacman $*
|
||||||
|
echo "$*" | grep -q "S\|R" && rehash
|
||||||
|
}
|
||||||
|
yaourt () {
|
||||||
|
/usr/bin/yaourt $*
|
||||||
|
echo "$*" | grep -q "S\|R" && rehash
|
||||||
|
}
|
||||||
|
yatest () {
|
||||||
|
/usr/bin/yaourt --config /etc/pactest.conf $*
|
||||||
|
echo "$*" | grep -q "S\|R" && rehash
|
||||||
|
}
|
||||||
|
|
||||||
alias ls='show_which ls && ls --color=auto'
|
alias ls='show_which ls && ls --color=auto'
|
||||||
alias ll='show_which ll && ls --group-directories-first -l --human-readable'
|
alias ll='show_which ll && ls --group-directories-first -l --human-readable'
|
||||||
@ -230,7 +241,6 @@ if [[ $EUID == 0 ]]; then
|
|||||||
alias kdm='show_which kdm && systemctl start kdm && exit'
|
alias kdm='show_which kdm && systemctl start kdm && exit'
|
||||||
alias synctime='show_which synctime && { ntpd -qg; hwclock -w; date; }'
|
alias synctime='show_which synctime && { ntpd -qg; hwclock -w; date; }'
|
||||||
else
|
else
|
||||||
alias pacman='show_which pacman && sudo pacman'
|
|
||||||
alias fat32mnt='show_which fat32mnt && sudo mount -t vfat -o codepage=866,iocharset=utf8,umask=000'
|
alias fat32mnt='show_which fat32mnt && sudo mount -t vfat -o codepage=866,iocharset=utf8,umask=000'
|
||||||
alias umount='show_which umount && sudo umount'
|
alias umount='show_which umount && sudo umount'
|
||||||
alias mount='show_which mount && sudo mount'
|
alias mount='show_which mount && sudo mount'
|
||||||
|
Loading…
Reference in New Issue
Block a user