Last active
March 9, 2021 07:23
-
-
Save mkimi-lightricks/2bdd60c2638204382eb554d8d7f59f03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Case-insensitive completion when pressing TAB. | |
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' | |
autoload -Uz compinit && compinit | |
# To allow Alt + Back Space to delete up to prev '\' char in shell. | |
autoload -U select-word-style | |
select-word-style bash | |
# Search in history with already typed text | |
bindkey "^[p" history-beginning-search-backward | |
bindkey "^[n" history-beginning-search-forward | |
# git prompt | |
autoload -Uz vcs_info | |
setopt PROMPT_SUBST | |
zstyle ':vcs_info:*' actionformats '%F{5}[%F{6}%b%F{3}|%F{1}%a%F{5}]%f ' | |
zstyle ':vcs_info:*' formats '%F{5}[%F{6}%b%F{5}]%f ' | |
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | |
precmd () { vcs_info } | |
PS1='%F{5}[%F{15}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}%f%# ' | |
# aliases | |
alias ls='ls -GFh' | |
alias la='ls -al' | |
alias lt='ls -altr' | |
alias grep='grep --color' | |
alias less='less -i' | |
alias xclip='pbcopy' | |
alias tree='tree -C' | |
# alias python='/usr/local/bin/python3' | |
e() { emacs "$@" & } | |
alias ei='emacs -nw' | |
alias gg='git grep' | |
alias s='git status' | |
alias d='git d' # open git diff | |
alias r='git r' # list all recent branches | |
alias p4merge='/Applications/p4merge.app/Contents/MacOS/p4merge' | |
# Update the PATH to give a preference to the brew install (python3) than the one is | |
# in the system located in /usr/bin/python | |
export PATH=/usr/local/opt/python/libexec/bin:$PATH | |
eval "$(rbenv init -)" | |
eval "$(pyenv init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment