Update aliases
This commit is contained in:
parent
fdc8a42e31
commit
deb7041073
|
@ -1,42 +1,56 @@
|
||||||
alias v="vim"
|
alias v "vim"
|
||||||
|
alias subl "/Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
||||||
alias reload! ". $HOME/.config/fish/config.fish"
|
alias reload! ". $HOME/.config/fish/config.fish"
|
||||||
alias b "bundle exec"
|
alias b "bundle exec"
|
||||||
|
|
||||||
alias ll "ls -lAFh"
|
alias ll "ls -lAFh"
|
||||||
alias please "sudo"
|
alias please "sudo"
|
||||||
|
alias down "rsync -chavzP --stats"
|
||||||
|
|
||||||
|
# GCC
|
||||||
|
alias gcc48 "gcc-4.8"
|
||||||
|
|
||||||
# Ruby & Rails
|
# Ruby & Rails
|
||||||
alias b "bundle exec"
|
alias b "bundle exec"
|
||||||
|
|
||||||
|
# alias http "ruby -run -e httpd . -p5000"
|
||||||
|
|
||||||
alias rails "bundle exec rails"
|
alias rails "bundle exec rails"
|
||||||
alias rake "bundle exec rake"
|
alias rake "bundle exec rake"
|
||||||
|
alias sidekiq "bundle exec sidekiq"
|
||||||
alias rspec "bundle exec rspec"
|
alias rspec "bundle exec rspec"
|
||||||
alias cap "bundle exec cap"
|
|
||||||
alias cucumber "bundle exec cucumber"
|
alias cucumber "bundle exec cucumber"
|
||||||
|
alias cap "bundle exec cap"
|
||||||
|
alias mina "bundle exec mina"
|
||||||
|
alias foreman "bundle exec foreman"
|
||||||
|
|
||||||
alias bd "bundle install --path vendor/gems"
|
alias bd "bundle install --path=vendor/gems --jobs=8 --verbose"
|
||||||
alias ss "git up; bundle --quiet; bundle exec rake db:migrate"
|
|
||||||
alias rc "rails c"
|
alias rc "rails c"
|
||||||
alias rs "rails s"
|
alias rs "rails s"
|
||||||
alias rs1 "rails s -p3001"
|
alias rs1 "rails s -p3001"
|
||||||
alias rs2 "rails s -p3002"
|
alias rs2 "rails s -p3002"
|
||||||
alias fs "bundle exec foreman start"
|
|
||||||
|
alias nano-console "ssh ins1.int.avs.io -t 'screen -r localhots'"
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias git "git-achievements"
|
alias git "git-achievements"
|
||||||
alias gl "git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
|
alias gl "git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold
|
||||||
alias gc "git ci -m"
|
green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
|
||||||
|
alias gc "git ci -S --allow-empty -m"
|
||||||
alias ga "git add -u; git add .; git st"
|
alias ga "git add -u; git add .; git st"
|
||||||
|
alias gf "ga; gc 'Fixup me'; git rh"
|
||||||
alias gs "git st"
|
alias gs "git st"
|
||||||
alias gd "git diff"
|
alias gd "git diff"
|
||||||
|
alias gdc "git diff --cached"
|
||||||
alias gp "git push"
|
alias gp "git push"
|
||||||
alias gu "git up"
|
alias gu "git up"
|
||||||
alias gb "git br"
|
|
||||||
|
|
||||||
# OSX
|
# OSX
|
||||||
alias hidedesktop "defaults write com.apple.finder CreateDesktop -bool false; killall Finder"
|
alias hide-desktop "defaults write com.apple.finder CreateDesktop -bool false; killall Finder"
|
||||||
alias showdesktop "defaults write com.apple.finder CreateDesktop -bool true; killall Finder"
|
alias show-desktop "defaults write com.apple.finder CreateDesktop -bool true; killall Finder"
|
||||||
|
alias prefs "/Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences"
|
||||||
|
alias admin-prefs "sudo /Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences"
|
||||||
|
|
||||||
# Services start-ups and shut-downs
|
# Services start-ups and shut-downs
|
||||||
alias mysql-start="mysql.server start"
|
alias mysql-start="mysql.server start"
|
||||||
|
@ -45,7 +59,12 @@ alias mysql-restart="mysql.server restart"
|
||||||
|
|
||||||
alias postgres-start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
|
alias postgres-start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
|
||||||
alias postgres-stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
|
alias postgres-stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
|
||||||
|
alias postgres-restart="postgres-stop; postgres-start"
|
||||||
|
|
||||||
alias redis-start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
|
alias redis-start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
|
||||||
alias redis-stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
|
alias redis-stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist"
|
||||||
alias redis-restart="redis-stop; redis-start"
|
alias redis-restart="redis-stop; redis-start"
|
||||||
|
|
||||||
|
alias elastic-start "launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist"
|
||||||
|
alias elastic-stop "launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist"
|
||||||
|
alias elastic-restart "elastic-stop; elastic-start"
|
||||||
|
|
Loading…
Reference in New Issue