mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
127 lines
3.0 KiB
Plaintext
127 lines
3.0 KiB
Plaintext
# Common Aliases
|
|
alias -g ...=../..
|
|
alias -g ....=../../..
|
|
alias -g .....=../../../..
|
|
alias -g ......=../../../../..
|
|
|
|
alias ..la="cd ..;la"
|
|
alias ..ll="cd..;ll"
|
|
alias ..l="..ll"
|
|
|
|
alias l=ll
|
|
alias ll="ls -lFh"
|
|
alias la="ls -lAFh"
|
|
alias al=la # No, I don't need the Mono Assembly Linker
|
|
|
|
alias md="mkdir -p"
|
|
mcd(){
|
|
mkdir $1 && cd $1
|
|
}
|
|
alias grep='grep --color'
|
|
alias -g H='| head'
|
|
alias -g T='| tail'
|
|
alias -g G='| grep'
|
|
alias -g L="| less"
|
|
alias -g C="| wc -l"
|
|
alias -g S="| sort"
|
|
alias -g count="| wc -l"
|
|
alias -g NE="2> /dev/null"
|
|
alias -g NUL="&> /dev/null"
|
|
alias -g BG="&;disown"
|
|
alias -g COL="| column -t"
|
|
|
|
alias svi=sudoedit
|
|
# This will enable us to use aliases in sudo.
|
|
# (If alias finishes with a space or tab, the shell will check if the next command is also aliased.)
|
|
# Source: https://github.com/mayah/home/blob/master/.zsh/zshrc.d/alias.zsh
|
|
alias sudo='sudo '
|
|
|
|
alias rm='rm -i'
|
|
alias mv='mv -i'
|
|
alias cp='cp -i'
|
|
|
|
# System aliases
|
|
alias s=systemctl
|
|
alias y=yaourt
|
|
alias ps='ps aux'
|
|
|
|
# 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
|
|
alias -s jar="java -jar"
|
|
alias -s git="git clone"
|
|
|
|
|
|
# Git Aliases
|
|
alias g=git
|
|
alias gcl="git clone --recursive"
|
|
alias gco="git checkout"
|
|
alias gcom="git checkout master"
|
|
alias ga="git add"
|
|
alias gaa="ga -A"
|
|
alias gc="git commit"
|
|
alias gcm="gc -m"
|
|
alias gcam="gcm -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 gds="git diff --staged"
|
|
alias glg="git log --stat --color"
|
|
alias glog="git log --oneline --decorate --color --graph"
|
|
|
|
alias grst="git reset"
|
|
alias gundo="git reset @~1"
|
|
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 xsession="$EDITOR ~/.xsession"
|
|
alias sshc="$EDITOR ~/.ssh/config"
|
|
alias dotfiles="cd $DOTFILES"
|
|
alias i3c="$EDITOR ~/.config/i3/config ; i3-msg restart"
|
|
alias i3bc="$EDITOR ~/.config/i3/blocksconfig ; i3-msg restart"
|
|
alias sf=screenfetch
|
|
alias nf=neofetch
|
|
|
|
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"
|
|
alias downloads="~/downloads"
|
|
alias dl="downloads"
|
|
alias doc="~/documents"
|
|
alias desktop="cd ~/desktop"
|
|
alias uni="~/university"
|
|
alias drive="~/drive"
|