bash: remove unnecessary, update the rest; zsh: minor tweaks
This commit is contained in:
parent
ec982fd1b0
commit
cfa47c3630
3 changed files with 12 additions and 48 deletions
|
@ -1,5 +1,5 @@
|
|||
# some distributions love to force some aliases upon user :<
|
||||
unalias ls ll ld 2>/dev/null
|
||||
unalias ls ld ll 2>/dev/null
|
||||
|
||||
beep() { printf $'\007' }
|
||||
fixterm() { printf $'c' }
|
||||
|
@ -15,7 +15,7 @@ if [[ -x $(whence -p exa) ]]; then
|
|||
ll() { ls -alg $@ }
|
||||
ld() { ls -dlg $@ }
|
||||
else
|
||||
ls() { command ls --color=auto $@ }
|
||||
ls() { command ls --color=auto --group-directories-first $@ }
|
||||
ll() { ls -alh $@ }
|
||||
ld() { ls -dlh $@ }
|
||||
fi
|
||||
|
@ -56,9 +56,6 @@ atmux() { tmux attach || tmux }
|
|||
# sudo
|
||||
sush() { command sudo -Es }
|
||||
|
||||
# vim
|
||||
vi() { command vim $@ }
|
||||
|
||||
# grc
|
||||
if [[ -x $(whence -p grc) ]]; then
|
||||
cmds=(\
|
||||
|
|
|
@ -20,8 +20,8 @@ typeset -A prompt_symbols=(
|
|||
typeset -A prompt_colors=(
|
||||
fg 15
|
||||
user 53
|
||||
ssh 90
|
||||
root 52
|
||||
ssh 90
|
||||
host 237
|
||||
cwd 234
|
||||
ro 124
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue