zsh: more emacs related tweaks
This commit is contained in:
parent
639b04d45e
commit
4d85fbdca7
4 changed files with 7 additions and 7 deletions
|
@ -26,10 +26,8 @@ tmux() { command tmux -2 $@ }
|
|||
atmux() { tmux attach || tmux }
|
||||
sush() { command sudo -Es }
|
||||
|
||||
emd() { command emacs --daemon &>/dev/null &! }
|
||||
ema() { command emacsclient -a '' "$@"}
|
||||
emg() { ema -c $@ }
|
||||
em() { ema -t $@ }
|
||||
ema() { command emacsclient -c $@ }
|
||||
em() { command emacsclient -t $@ }
|
||||
|
||||
tig() { termcompat tig $@ }
|
||||
gsi() { tig status }
|
||||
|
@ -53,7 +51,6 @@ else
|
|||
gdf() { gdiff $@ }
|
||||
fi
|
||||
|
||||
unalias ls ld ll 2>/dev/null
|
||||
if [[ -x $(whence -p exa) ]]; then
|
||||
ls() { command exa --group-directories-first $@ }
|
||||
ll() { ls -alg $@ }
|
|
@ -8,7 +8,7 @@
|
|||
confdir=$(dirname $0)
|
||||
conflist=(
|
||||
settings.zsh
|
||||
functions.zsh
|
||||
aliases.zsh
|
||||
prompt-powerline.zsh
|
||||
)
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ precmd.prompt.git() {
|
|||
esac
|
||||
done <<< $raw_status
|
||||
|
||||
for i in git_unstaged git_staged git_untracked git_unmerged; do
|
||||
for i in git_unstaged git_untracked git_unmerged git_staged; do
|
||||
(( count[$i] )) && precmd.prompt.add "$count[$i]$prompt_symbols[$i]" $prompt_colors[$i]
|
||||
done
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ export PAGER=less
|
|||
export EDITOR=vim
|
||||
export TIME_STYLE=long-iso
|
||||
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
|
||||
export ALTERNATE_EDITOR=
|
||||
|
||||
bindkey -e
|
||||
bindkey $terminfo[kdch1] delete-char
|
||||
|
@ -38,3 +39,5 @@ zstyle ':completion:*' rehash true
|
|||
zstyle ':completion:*:kill:*:processes' command 'ps --forest -A -o pid,user,cmd'
|
||||
zstyle ':completion:*:processes-names' command 'ps axho command'
|
||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
|
||||
unalias ld ls ll &>/dev/null
|
||||
|
|
Loading…
Reference in a new issue