-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
58 lines (54 loc) · 2.75 KB
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
alias dc="docker-compose"
alias gac="git add .;git commit -a -v" #git add and commit
alias fixup="git ff"
alias gl="git log --graph --decorate --oneline" # show a nice log: 'Jankees van Woezik, 3 days ago : Log meisters readme file'
alias gs="git status"
alias gm="git checkout master"
alias gb='git checkout $(git branch --sort=-committerdate | fzf --height 42%)'
alias gx="gitup"
alias gnb="git checkout -b "
alias glog="git log --format='%Cgreen%h%Creset %C(cyan)%an%Creset - %s' --graph"
alias gp="git pull -r"
alias gc="git checkout"
alias recent="git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes | head -n 10"
alias docker_remove_containers='docker rm $(docker ps -a -q) && docker rmi $(docker images -q) -f'
alias prune_branches='git checkout master && git fetch && git remote prune origin && git branch --merged master | grep -v "master$" | xargs git branch -d'
alias push="git push && github browse"
alias route="rails routes | grep"
alias gtrack='git branch -u origin/$(current_branch)'
alias new_hashes="perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g'"
alias ip="ifconfig | grep 'inet' | grep -oE \"\w+ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\""
alias rebase="git fetch; git rebase origin/master"
alias ym='ruby /Users/jankeesvw/Documents/code/ymcli/ymcli.rb'
alias force="git push --force-with-lease"
alias dps="docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"
alias asdf="ruby -run -ehttpd . -p8000"
alias stash="git add .; git stash"
alias unstash="git stash apply"
alias repo="gh repo view -w"
alias pulls="gh pr list -w"
alias pr="gh pr view -w"
alias rubobranch="git diff --diff-filter=AM --name-only master.. | grep .rb | gawk '{gsub(/StekkerWeb\//,\"\")}1\' | xargs rubocop"
#### System specific aliases ####
alias notification="osascript -e 'display notification \"Klaar\"'"
alias r="puma-dev -stop"
alias l="ls -alG"
alias aliases="mate -w ~/dotfiles/.aliases && source ~/.zshrc"
alias finderS='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
alias finderH='defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder'
alias migrate="rake db:migrate && RAILS_ENV=test rake db:migrate"
alias rollback="rake db:rollback && RAILS_ENV=test rake db:rollback"
alias s="rails server"
alias be="bundle exec"
alias erd="erd; rake erd; open erd.pdf"
alias belp="bundle exec localeapp pull"
alias pull="git pull -r"
alias spec="rspec spec"
alias bi="bundle install"
alias db_reset='rake db:drop db:create && rake db:schema:load'
alias apache_log='tail -f /private/var/log/apache2/error_log'
alias integration="bundle exec rspec spec --format nested -t integration"
alias reload="source ~/.zshrc"
alias tmux="TERM=screen-256color-bce tmux"
unsetopt correct_all
export DISABLE_COVERAGE=true