Created
June 10, 2022 05:55
-
-
Save pradeep1991singh/d90cfede54a9da4220a5b64826a79c72 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
# git aliases | |
alias st='git status' | |
alias co='git checkout' | |
alias pl='git pull' | |
alias pu='git push' | |
alias plr='git pull --rebase' | |
alias plro='git pull --rebase origin' | |
alias lg='git log' | |
alias ga='git add .' | |
alias ci='git commit' | |
alias gmv='git branch -m' | |
alias gsq='git rebase --interactive' | |
alias gr='git rebase' | |
alias gs='git stash' | |
alias gsl='git stash list' | |
alias gsp='git stash pop' | |
alias gsd='git stash drop' | |
alias grpd='git remote prune origin --dry-run' | |
alias grp='git remote prune origin' | |
alias gmt='git merge -Xtheirs' | |
alias gmo='git merge -Xours' | |
#bind '"\e[A": history-search-backward' | |
autoload -U history-search-end | |
zle -N history-beginning-search-backward-end history-search-end | |
zle -N history-beginning-search-forward-end history-search-end | |
bindkey "^[[A" history-beginning-search-backward-end | |
bindkey "^[[B" history-beginning-search-forward-end | |
export NODE_ENV=development | |
# Git branch in prompt | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
COLOR_DEF=$'\e[0m' | |
COLOR_USR=$'\e[38;5;243m' | |
COLOR_DIR=$'\e[38;5;197m' | |
COLOR_GIT=$'\e[38;5;39m' | |
setopt PROMPT_SUBST | |
export PROMPT='${COLOR_USR}%n ${COLOR_DIR}%~ ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF} $ ' | |
# Add Visual Studio Code (code) | |
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi | |
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" | |
export PATH="$PATH:$GEM_HOME/bin" | |
export PATH="$PATH:/Users/pradeepkumar/dev/flutter/bin" | |
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator | |
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.1.1.jdk/Contents/Home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment