diff --git a/.oh-my-zsh/custom/aliases.zsh b/.oh-my-zsh/custom/aliases.zsh new file mode 100644 index 0000000..9e49288 --- /dev/null +++ b/.oh-my-zsh/custom/aliases.zsh @@ -0,0 +1,24 @@ +#Readability aliases +alias lss='ls -alh --color=auto' +alias mount='mount |column -t' +alias df='df -H' +#Shell Function aliases +alias dirs="dirs -v" +alias h='history' +alias j='jobs -l' +#shortcuts aliases +alias ping='ping -c 5' +alias ax="chmod a+x" +alias wmip="curl icanhazip.com" +#git aliases +alias gitS='git status' +alias gitL='git log' +alias gitD='git diff' +#Apt aliases +alias aptup="sudo apt update && sudo apt upgrade" +alias aptrm="sudo apt autoremove && sudo apt autoclean" +#Combo aliases +mcd() { mkdir -p "$1"; cd "$1";} #make a directory and cd into it +cls() { cd "$1"; ls;} #cd into directory and list contents +md5check() { md5sum "$1" | grep "$2";} #md5sum file, compare to md5sum as second parameter + diff --git a/.oh-my-zsh/custom/extract.zsh b/.oh-my-zsh/custom/extract.zsh new file mode 100644 index 0000000..31d1182 --- /dev/null +++ b/.oh-my-zsh/custom/extract.zsh @@ -0,0 +1,20 @@ +extract() { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar e $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via extract()" ;; + esac + else + echo "'$1' is not a valid file" + fi +} diff --git a/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh b/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh index fb514a4..3f66e81 100644 --- a/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh +++ b/.oh-my-zsh/plugins/tmux/tmux.plugin.zsh @@ -15,7 +15,7 @@ if which tmux &> /dev/null # Configuration variables # # Automatically start tmux - [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false + [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=true # Only autostart once. If set to false, tmux will attempt to # autostart every time your zsh configs are reloaded. [[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true