Skip to content

Instantly share code, notes, and snippets.

@ermand
Last active June 7, 2017 12:57
Show Gist options
  • Save ermand/420899b96141a24e3a32 to your computer and use it in GitHub Desktop.
Save ermand/420899b96141a24e3a32 to your computer and use it in GitHub Desktop.
Some useful cli aliases
# Common
alias ..="cd .."
alias ...="cd ../.."
alias h='cd ~'
alias c='clear'
alias ll='ls -lahG'
# Test
alias codecept='vendor/bin/codecept'
alias crf='codecept run functional'
alias cgf='codecept generate:cept functional'
alias cra='codecept run acceptance'
alias cga='codecept generate:cept acceptance'
alias phpspec='vendor/bin/phpspec'
alias start_phantomjs='vendor/bin/phantomjs --webdriver=4444 --webdriver-loglevel=NONE --ignore-ssl-errors=true --ssl-protocol=any &'
alias stop_phantomjs='pgrep phantomjs | xargs kill'
# Git
alias gs='git status'
alias gaa='git add'
alias gc='git commit -m'
alias gpush='git push'
alias gpull='git pull'
alias gch='git checkout'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias nah="git reset --hard && git clean -df"
#alias cleanup-dev-branches="!f() { git branch --merged ${1-develop} | grep -v " ${1-develop}$" | xargs -r git branch -d; }; f"
# GitFlow
alias gff='git flow feature'
alias gfl='git flow release'
alias gfh='git flow hotfix'
# Bindings
bindkey -e
bindkey '^[[1;9C' forward-word
bindkey '^[[1;9D' backward-word
#####
# VM
alias vm='ssh [email protected] -p 2222'
alias v='vagrant version && vagrant global-status'
alias vst='vagrant status'
alias vup='vagrant up'
alias vdo='vagrant halt'
alias vssh='vagrant ssh'
alias vkill='vagrant destroy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment