mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
This consolidates so aliases are shared between bash and zsh
This commit is contained in:
parent
5a881d9164
commit
80637fdc76
1 changed files with 4 additions and 13 deletions
17
zshrc
17
zshrc
|
|
@ -42,7 +42,9 @@ source $ZSH/oh-my-zsh.sh
|
|||
# normal practices. This inserts a few more things that I use from the shell.
|
||||
export PATH=~/bin:~/util:$PATH:/usr/local/share/npm/bin
|
||||
|
||||
# [[ $(id -u) == 0 ]] && export PATH=/usr/local/bin:$PATH
|
||||
# this should be allowed I think. But the system should really be configured to
|
||||
# give that path to root user.
|
||||
[[ $(id -u) == 0 ]] && export PATH=/usr/local/bin:$PATH
|
||||
# export PAGER=vimpager
|
||||
|
||||
# zmodload zsh/complist
|
||||
|
|
@ -75,18 +77,7 @@ function zshaddhistory() {
|
|||
fc -p
|
||||
}
|
||||
|
||||
alias l="ls"
|
||||
alias gs="git s" # short status
|
||||
alias glp="git log -p --no-ext-diff"
|
||||
alias gdt="git difftool"
|
||||
alias gd="git diff --no-ext-diff"
|
||||
alias gdc="gd --cached"
|
||||
alias gg="git lg"
|
||||
alias gcm="git commit -am"
|
||||
alias mk="make"
|
||||
|
||||
alias ds="dirs -v | head -10"
|
||||
alias d="gd"
|
||||
. ~/aliases.sh
|
||||
|
||||
# maintain this manually per-system
|
||||
source ~/.keychain-setup.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue