Update $PATH variable, add git alias

This commit is contained in:
Harry Green 2019-09-23 14:01:40 +12:00 committed by Harry Green
parent 73fabc3353
commit bce7d6d7f5
3 changed files with 6 additions and 25 deletions

View file

@ -47,6 +47,8 @@ if ! zstyle -t ':prezto:module:git:alias' skip; then
alias gbV='git branch --verbose --verbose'
alias gbx='git branch --delete'
alias gbX='git branch --delete --force'
# Delete local branches which have been merged
alias gbdm='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d'
# Commit (c)
alias gc='git commit --verbose'

View file

@ -61,10 +61,8 @@ path=(
# Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X to enable it.
if [[ -z "$LESS" ]]; then
export LESS='-g -i -M -R -S -w -X -z-4'
fi
# Remove -X and -F (exit if the content fits on one screen) to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4'
# Set the Less input preprocessor.
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.

View file

@ -23,25 +23,6 @@ export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
# NVM
export NVM_DIR="/Users/harrygreen/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Android SDK location
export ANDROID_HOME="/Users/harrygreen/Library/Android/sdk"
# Yarn Package Manager
# export PATH="$PATH:`yarn global bin`"
# Global Composer Packages
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
# Terminal Markdown Viewer - Theme Configuration
export MDV_THEME=1027.0309
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH="$PATH:$HOME/.local/bin"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion