Files
dotfiles/.bash_aliases
T
2018-06-17 22:32:12 +03:00

47 lines
1.2 KiB
Bash

##### Platform independent #####
# Git Aliases
alias g="git"
alias much="git"
alias such="git"
alias very="git"
alias so="git"
alias ga="git add"
alias gr="git rm"
alias gc="git commit"
alias gs="git status -s"
alias gss="git status"
alias gd="git diff"
alias gds="git diff --staged"
alias gco="git checkout"
alias gcm="git checkout master"
alias gpom="git pull origin master"
alias gbd="git branch -D"
alias gm="git mergetool"
alias tm="tmux -2 attach-session -t "default" || tmux -2 new-session -s \"default\""
# Editing files
alias aliases="vim ~/.bash_aliases"
alias vimrc="vim ~/.vimrc"
# CD-ing to some commonly used folders
alias og="cd ~/Git"
alias sass_watch="sass --watch ./:./"
alias grep="grep --color=auto"
alias c="clear"
alias be="bundle exec"
alias share="python -m SimpleHTTPServer"
##### Mac OS Specific #####
alias showfiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app"
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app"
alias cask="brew cask"
alias fl="open -a ForkLift"
if [ -f ~/.bash_local_aliases ]; then
. ~/.bash_local_aliases
fi