dotfiles/aliases

52 lines
1 KiB
Plaintext
Raw Normal View History

2016-11-16 22:27:32 +00:00
alias ga="git add -p"
alias gc="git commit"
2018-04-27 21:10:10 +00:00
alias gca="git commit --amend --no-edit --reset-author"
2017-02-23 18:45:25 +00:00
alias gcm="git commit -m"
2017-05-08 10:42:28 +00:00
alias gl="git log"
alias gs="git status"
2019-02-21 01:54:00 +00:00
alias gh="github"
2017-02-23 18:45:25 +00:00
alias nah="git reset --hard && git clean -fd"
2019-02-21 01:54:00 +00:00
alias wip="git add . && git commit -m 'wip'"
alias l="ls -lah"
2019-04-01 09:13:55 +00:00
# Fast open
alias o="open ."
2017-04-06 19:50:44 +00:00
alias p="phpunit"
alias pf="phpunit --filter "
2018-04-27 21:10:10 +00:00
alias pstorm="phpstorm"
2016-11-16 22:27:32 +00:00
alias st="subl"
alias stt="subl ."
2019-04-10 09:56:12 +00:00
# Quickly go to the Code directory
2018-03-19 22:27:17 +00:00
alias web="cd ~/Code"
2019-03-21 15:36:18 +00:00
alias yd="yarn dev"
alias yp="yarn prod"
alias ys="yarn serve"
alias yw="yarn watch"
2019-03-26 15:46:12 +00:00
# Docksal
alias f="fin"
2019-04-01 08:59:20 +00:00
# Shorter Git commands.
alias add='git add'
alias amend='git commit --amend'
alias clone='git clone'
alias commit='git commit'
alias pull='git pull'
alias push='git push'
alias rebase='git rebase'
2019-04-01 09:13:12 +00:00
2019-04-10 09:52:03 +00:00
alias hosts="sudo vim /etc/hosts"
2019-04-01 09:13:12 +00:00
alias sshconfig='vim ~/.ssh/config'
2019-04-10 09:52:03 +00:00
alias zshconfig='vim ~/.zshrc'
# PhpStorm
2019-04-28 21:20:26 +00:00
alias pstorm='open -a /Applications/PhpStorm.app "`pwd`"'
# Sublime Text
alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"'