mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
Merge upstream/master
This commit is contained in:
commit
c900ea5d85
@ -25,6 +25,8 @@ unsetopt CLOBBER # Do not overwrite existing files with > and >>.
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:directory:alias' skip; then
|
||||||
alias -- -='cd -'
|
alias -- -='cd -'
|
||||||
alias d='dirs -v'
|
alias d='dirs -v'
|
||||||
for index ({1..9}) alias "$index"="cd +${index}"; unset index
|
for index ({1..9}) alias "$index"="cd +${index}"; unset index
|
||||||
|
fi
|
||||||
|
@ -19,7 +19,9 @@ source "$HOME/.cask/etc/cask_completion.zsh" 2> /dev/null
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:emacs:alias' skip; then
|
||||||
alias cai='cask install'
|
alias cai='cask install'
|
||||||
alias cau='cask update'
|
alias cau='cask update'
|
||||||
alias caI='cask init'
|
alias caI='cask init'
|
||||||
alias cae='cask exec'
|
alias cae='cask exec'
|
||||||
|
fi
|
||||||
|
@ -53,5 +53,7 @@ function fasd_cd {
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:fasd:alias' skip; then
|
||||||
# Changes the current working directory interactively.
|
# Changes the current working directory interactively.
|
||||||
alias j='fasd_cd -i'
|
alias j='fasd_cd -i'
|
||||||
|
fi
|
||||||
|
@ -38,8 +38,10 @@ unset _pmh_{hist{file,size},savehist}
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:history:alias' skip; then
|
||||||
# Lists the ten most used commands.
|
# Lists the ten most used commands.
|
||||||
alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head"
|
alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -s "${OLD_HISTFILE::=${HISTFILE:h}/.zhistory}" ]]; then
|
if [[ -s "${OLD_HISTFILE::=${HISTFILE:h}/.zhistory}" ]]; then
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ fi
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew
|
||||||
|
if ! zstyle -t ':prezto:module:homebrew:alias' skip; then
|
||||||
alias brewc='brew cleanup'
|
alias brewc='brew cleanup'
|
||||||
alias brewi='brew install'
|
alias brewi='brew install'
|
||||||
alias brewL='brew leaves'
|
alias brewL='brew leaves'
|
||||||
@ -45,3 +46,4 @@ alias casko='brew outdated --cask'
|
|||||||
alias casks='brew search --cask'
|
alias casks='brew search --cask'
|
||||||
alias casku='brew upgrade --cask'
|
alias casku='brew upgrade --cask'
|
||||||
alias caskx='brew uninstall --cask'
|
alias caskx='brew uninstall --cask'
|
||||||
|
fi
|
||||||
|
@ -28,6 +28,7 @@ path=(
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:macports:alias' skip; then
|
||||||
alias portc='sudo port clean --all installed'
|
alias portc='sudo port clean --all installed'
|
||||||
alias porti='sudo port install'
|
alias porti='sudo port install'
|
||||||
alias ports='port search'
|
alias ports='port search'
|
||||||
@ -35,3 +36,4 @@ alias portU='sudo port selfupdate && sudo port upgrade outdated'
|
|||||||
alias portu='sudo port upgrade'
|
alias portu='sudo port upgrade'
|
||||||
alias portX='sudo port -u uninstall'
|
alias portX='sudo port -u uninstall'
|
||||||
alias portx='sudo port uninstall'
|
alias portx='sudo port uninstall'
|
||||||
|
fi
|
||||||
|
@ -48,6 +48,7 @@ N_PREFIX="${XDG_CONFIG_HOME:-$HOME/.config}/n" # The path to 'n' cache.
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:node:alias' skip; then
|
||||||
# npm
|
# npm
|
||||||
alias npmi='npm install'
|
alias npmi='npm install'
|
||||||
alias npml='npm list'
|
alias npml='npm list'
|
||||||
@ -63,3 +64,4 @@ alias npmx='npm uninstall'
|
|||||||
alias npmci='npm ci'
|
alias npmci='npm ci'
|
||||||
alias npmcit='npm cit'
|
alias npmcit='npm cit'
|
||||||
alias npmit='npm it'
|
alias npmit='npm it'
|
||||||
|
fi
|
||||||
|
@ -61,6 +61,7 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:perl:alias' skip; then
|
||||||
# General
|
# General
|
||||||
alias pl='perl'
|
alias pl='perl'
|
||||||
alias pld='perldoc'
|
alias pld='perldoc'
|
||||||
@ -95,3 +96,4 @@ elif (( $+commands[plenv] )); then
|
|||||||
alias plvM='plenv migrate-modules'
|
alias plvM='plenv migrate-modules'
|
||||||
alias plvI='plenv install-cpanm'
|
alias plvI='plenv install-cpanm'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
@ -171,6 +171,8 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:python:alias' skip; then
|
||||||
alias py='python'
|
alias py='python'
|
||||||
alias py2='python2'
|
alias py2='python2'
|
||||||
alias py3='python3'
|
alias py3='python3'
|
||||||
|
fi
|
||||||
|
@ -19,6 +19,7 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:rails:alias' skip; then
|
||||||
alias ror='bundle exec rails'
|
alias ror='bundle exec rails'
|
||||||
alias rorc='bundle exec rails console'
|
alias rorc='bundle exec rails console'
|
||||||
alias rordc='bundle exec rails dbconsole'
|
alias rordc='bundle exec rails dbconsole'
|
||||||
@ -33,3 +34,4 @@ alias rorr='bundle exec rails runner'
|
|||||||
alias rors='bundle exec rails server'
|
alias rors='bundle exec rails server'
|
||||||
alias rorsd='bundle exec rails server --debugger'
|
alias rorsd='bundle exec rails server --debugger'
|
||||||
alias rorx='bundle exec rails destroy'
|
alias rorx='bundle exec rails destroy'
|
||||||
|
fi
|
||||||
|
@ -59,6 +59,7 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:ruby:alias' skip; then
|
||||||
# General
|
# General
|
||||||
alias rb='ruby'
|
alias rb='ruby'
|
||||||
|
|
||||||
@ -79,3 +80,4 @@ if (( $+commands[bundle] )); then
|
|||||||
&& print vendor/bundle >>! .gitignore \
|
&& print vendor/bundle >>! .gitignore \
|
||||||
&& print vendor/cache >>! .gitignore'
|
&& print vendor/cache >>! .gitignore'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
@ -36,7 +36,9 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:screen:alias' skip; then
|
||||||
alias scr='screen'
|
alias scr='screen'
|
||||||
alias scrl='screen -list'
|
alias scrl='screen -list'
|
||||||
alias scrn='screen -U -S'
|
alias scrn='screen -U -S'
|
||||||
alias scrr='screen -a -A -U -D -R'
|
alias scrr='screen -a -A -U -D -R'
|
||||||
|
fi
|
||||||
|
@ -45,5 +45,7 @@ fi
|
|||||||
# Aliases
|
# Aliases
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if ! zstyle -t ':prezto:module:tmux:alias' skip; then
|
||||||
alias tmuxa="tmux $_tmux_iterm_integration new-session -A"
|
alias tmuxa="tmux $_tmux_iterm_integration new-session -A"
|
||||||
alias tmuxl='tmux list-sessions'
|
alias tmuxl='tmux list-sessions'
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user