mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
autojump instead of fasd
This commit is contained in:
parent
2a5b839df3
commit
5b5c789551
2 changed files with 12 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Aliases in this file are bash and zsh compatible
|
||||
|
||||
oh-my-zsh=$HOME/.oh-my-zsh
|
||||
ohmyzsh=$HOME/.oh-my-zsh
|
||||
|
||||
# Get operating system
|
||||
platform='unknown'
|
||||
|
|
@ -32,23 +32,30 @@ fi
|
|||
|
||||
# Alias Editing
|
||||
TRAPHUP() {
|
||||
source $oh-my-zsh/custom/aliases.zsh
|
||||
source $ohmyzsh/custom/aliases.zsh
|
||||
}
|
||||
|
||||
alias ae='vim $oh-my-zsh/custom/aliases.zsh' #alias edit
|
||||
alias arl='source $oh-my-zsh/custom/aliases.zsh' #alias reload
|
||||
alias gar="killall -HUP -u \"$USER\" zsh" #global alias reload
|
||||
|
||||
# git
|
||||
alias gs='git status -uno'
|
||||
|
||||
# vim using
|
||||
mvim --version > /dev/null 2>&1
|
||||
MACVIM_INSTALLED=$?
|
||||
if [ $MACVIM_INSTALLED -eq 0 ]; then
|
||||
alias vim="mvim -v"
|
||||
else
|
||||
alias vi='vim'
|
||||
fi
|
||||
|
||||
# mimic vim functions
|
||||
alias :q='exit'
|
||||
|
||||
# vimrc editing
|
||||
alias ve='vim ~/.vimrc'
|
||||
alias ve='vi ~/.vimrc'
|
||||
|
||||
# map fasd to autojump
|
||||
alias 'z=j'
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ plugins=(
|
|||
git
|
||||
alias-finder
|
||||
aliases
|
||||
fasd
|
||||
autojump
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
|
@ -104,3 +104,4 @@ source $ZSH/oh-my-zsh.sh
|
|||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue