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

Move more aliases to own configs

This commit is contained in:
Joe Groocock 2016-03-31 19:21:23 +01:00
parent b132b0a35d
commit ac9b940854
2 changed files with 23 additions and 6 deletions

2
.zshrc
View File

@ -42,7 +42,7 @@ zstyle :compinstall filename '/home/frebib/.zshrc'
autoload -U compinit ; compinit
plugins=(command-not-found common-aliases cp history-substring-search sudo zsh-autosuggestions zsh-completions)
plugins=(command-not-found history-substring-search sudo zsh-autosuggestions zsh-completions)
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

27
aliases
View File

@ -1,6 +1,4 @@
# Common Aliases
#alias "-"="cd -"
#alias "~"="cd ~"
alias ...=../..
alias ....=../../..
alias .....=../../../..
@ -19,9 +17,28 @@ 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 NE="2> /dev/null"
alias svi=sudoedit
alias rm='rm -i'
alias mv='mv -i'
alias cp="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"
# 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 "
# Git Aliases
alias g=git
alias gcl="git clone --recursive"
@ -79,10 +96,10 @@ alias startcsecvm="VBoxManage startvm 'Intro to Computer Security' --type headle
alias stopcsecvm="VBoxManage controlvm 'Intro to Computer Security' poweroff"
alias lab="ssh -tt tw '~/ctl' 2>/dev/null"
alias downloads="~/Downloads"
alias downloads="~/downloads"
alias dl="downloads"
alias doc="~/Documents"
alias desktop="cd ~/Desktop"
alias doc="~/documents"
alias desktop="cd ~/desktop"
alias uni="~/university"
alias drive="~/drive"
alias lol="fortune | cowsay -f sodomized | lolcat -p 1"