Skip to content

Instantly share code, notes, and snippets.

@JTLR
Last active May 2, 2017 09:59
Show Gist options
  • Save JTLR/c64bcaee79b22edd7a1f7c36ef568796 to your computer and use it in GitHub Desktop.
Save JTLR/c64bcaee79b22edd7a1f7c36ef568796 to your computer and use it in GitHub Desktop.
bash functions and aliases for System, Git, Git LFS, NPM, Grunt, Bower and ngrok
# Functions
# -- System
local() { cd /c/xampp/htdocs ; }
# Aliases
# -- System
alias ll='ls -l'
alias ls='ls -F --color --show-control-chars'
# -- Git
alias ga='git add'
alias gaa='git add --all'
alias gb='git branch'
alias gc='git commit'
alias gcam='git commit -a -m'
alias gch='git checkout'
alias gcl='git clone'
alias gcm='git commit -m'
alias gd='git diff'
alias gf='git fetch'
alias gi='git init'
alias gl='git log'
alias gm='git merge'
alias gpl='git pull'
alias gplo='git pull origin master'
alias gps='git push'
alias gpso='git push origin master'
alias grh='git reset --hard'
alias gs='git status'
alias gt='git tag'
# -- Git LFS
alias gl='git lfs'
alias glc='git lfs clone'
alias glch='git lfs checkout'
alias glf='git lfs fetch'
alias gli='git lfs install'
alias glpl='git lfs pull'
alias glps='git lfs push'
alias gls='git lfs status'
alias glt='git lfs track'
# -- NPM
alias ni='npm install'
alias nisd='npm install --save-dev'
# -- Grunt
alias gr='grunt'
alias grw='grunt watch'
# -- Bower
alias bi='bower install'
alias bis='bower install --save'
alias bisd='bower install --save-dev'
# -- ngrok
alias ngrok='/c/Program\ Files/ngrok/ngrok.exe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment