Noglob git + emacsclient alias
This commit is contained in:
parent
6a8c73d412
commit
6e53e16da9
16
zsh/aliases
16
zsh/aliases
|
@ -4,6 +4,7 @@
|
||||||
if command_exists 'git'; then
|
if command_exists 'git'; then
|
||||||
# On top of oh-my-zsh's git aliases
|
# On top of oh-my-zsh's git aliases
|
||||||
alias git='noglob git'
|
alias git='noglob git'
|
||||||
|
alias gc='git commit'
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
alias gst='git stash'
|
alias gst='git stash'
|
||||||
alias gap='git add -p'
|
alias gap='git add -p'
|
||||||
|
@ -35,19 +36,8 @@ elif is_mac; then
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Open file in emacs daemon (will auto-start it)
|
# Open file in emacs server
|
||||||
function e {
|
alias e="emacsclient -n"
|
||||||
macos=/Applications/Emacs.app/Contents/MacOS
|
|
||||||
if pgrep -qf 'Emacs.*--daemon'; then
|
|
||||||
args=-n
|
|
||||||
else
|
|
||||||
$macos/Emacs --daemon
|
|
||||||
args=-nc
|
|
||||||
fi
|
|
||||||
echo $args
|
|
||||||
emacsclient $args "$@"
|
|
||||||
}
|
|
||||||
alias es="emacsclient -e '(kill-emacs)'"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tmux
|
# Tmux
|
||||||
|
|
Loading…
Reference in a new issue