1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/aliases

118 lines
2.7 KiB
Plaintext
Raw Normal View History

2016-03-31 02:03:55 +00:00
# Common Aliases
alias ...=../..
alias ....=../../..
alias .....=../../../..
alias ......=../../../../..
alias ..la="cd ..;la"
alias ..ll="cd..;ll"
alias ..l="..ll"
alias l=ll
alias ll="ls -lFh"
alias la="ls -lAFh"
2016-04-01 12:55:26 +00:00
alias al=la # No, I don't need the Mono Assembly Linker
2016-03-31 02:03:55 +00:00
alias count="la | wc -l"
alias md="mkdir -p"
mcd(){
mkdir $1 && cd $1
}
2016-03-31 18:21:23 +00:00
alias grep='grep --color'
alias -g H='| head'
alias -g T='| tail'
alias -g G='| grep'
alias -g L="| less"
2016-04-01 16:54:28 +00:00
alias -g C="| wc -l"
alias -g count="| wc -l"
2016-03-31 18:21:23 +00:00
alias -g NE="2> /dev/null"
2016-03-31 02:03:55 +00:00
alias svi=sudoedit
2016-03-31 18:21:23 +00:00
alias rm='rm -i'
alias mv='mv -i'
alias cp="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"
2016-04-01 12:37:15 +00:00
# System aliases
alias s=systemd
2016-04-02 17:19:14 +00:00
alias y=yaourt
2016-04-01 12:37:15 +00:00
alias ps='ps aux'
2016-03-31 18:21:23 +00:00
# File default aliases
alias -s pdf=evince
alias -s zip="unzip -l"
alias -s rar="unrar l"
alias -s tar="tar tf"
alias -s tar.gz="echo "
2016-03-31 02:03:55 +00:00
# Git Aliases
alias g=git
alias gcl="git clone --recursive"
alias gco="git checkout"
alias ga="git add"
alias gaa="ga -A"
alias gc="git commit"
alias gcm="gc -m"
alias gcam="gc -a"
alias gst="git status"
alias gm="git merge"
alias gma="git merge --abort"
alias grb="git rebase"
alias grba="grb --abort"
alias grbc="grb --continue"
alias gf="git fetch"
alias gp="git push"
alias gpf="gp --force"
alias gl="git pull --rebase"
alias gd="git diff"
alias glg="git log --stat --color"
alias glog="git log --oneline --decorate --color --graph"
alias gclean="git clean"
alias gbr="git branch"
alias gr="git remote"
alias gra="gr add"
alias grr="gr rm"
alias grao="gra origin"
alias grro="grr origin"
alias gsta='git stash'
alias gstd='gsta drop'
alias gstl='gsta list'
alias gstp='gsta pop'
alias gstv="gsta show -p stash@{0}"
# General Aliases
alias aliases="$EDITOR $DOTFILES/aliases ; source ~/.zshrc"
alias vimrc="$EDITOR ~/.vimrc"
alias zshrc="$EDITOR ~/.zshrc ; source ~/.zshrc"
alias yaourtrc="$EDITOR ~/.yaourtrc"
alias xinitrc="$EDITOR ~/.xinitrc"
alias xresources="$EDITOR ~/.Xresources ; xrdb merge ~/.Xresources"
alias sshc="$EDITOR ~/.ssh/config"
alias dotfiles="cd $DOTFILES"
alias i3c="$EDITOR ~/.config/i3/config ; i3-msg restart"
alias i3bc="$EDITOR ~/.config/i3blocks/config ; i3-msg restart"
alias sf=screenfetch
alias startcsecvm="VBoxManage startvm 'Intro to Computer Security' --type headless"
alias stopcsecvm="VBoxManage controlvm 'Intro to Computer Security' poweroff"
alias lab="ssh -tt tw '~/ctl' 2>/dev/null"
2016-03-31 18:21:23 +00:00
alias downloads="~/downloads"
2016-03-31 02:03:55 +00:00
alias dl="downloads"
2016-03-31 18:21:23 +00:00
alias doc="~/documents"
alias desktop="cd ~/desktop"
2016-03-31 02:03:55 +00:00
alias uni="~/university"
alias drive="~/drive"
alias lol="fortune | cowsay -f sodomized | lolcat -p 1"
alias gsvn="git svn"
alias gsync="git pull -q ; sl ; sp ; git push"
alias sp="git stash -q ; gsvn dcommit ; git stash pop"
alias sl="git stash -q ; gsvn rebase ; git stash pop"