about summary refs log tree commit diff
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc34
1 files changed, 2 insertions, 32 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 367794a..1766e57 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -13,28 +13,6 @@ export CDPATH=".:$HOME:$HOME/devil:$HOME/src"
 # just enables a bit nicer life when copy/pasting commands from docs
 setopt interactive_comments
 
-# colors in various core utils
-alias diff='diff --color'
-
-grep_opts="--color=auto --exclude-dir=.git"
-alias grep="grep $grep_opts"
-alias egrep="egrep $grep_opts"
-alias fgrep="fgrep $grep_opts"
-unset grep_opts
-
-if command -v exa &> /dev/null; then
-	alias ls='exa'
-	alias ll='exa --long --header --all'
-elif ls --color &> /dev/null; then
-	# gnu ls
-	alias ls='ls --color=auto'
-	alias ll='ls -l --almost-all --no-group --human-readable'
-else
-	# bsd/mac ls
-	export CLICOLOR='1'
-	alias ll='ls -hoA'
-fi
-
 # dots go up
 alias -g ...='../..'
 alias -g ....='../../..'
@@ -43,15 +21,6 @@ alias -g .....='../../../..'
 # aliases
 alias cls=clear
 alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
-alias mkdir='mkdir -p'
-
-if command -v gpg2 &> /dev/null; then
-	alias gpg='gpg2'
-fi
-
-if [[ "$OSTYPE" == 'cygwin' ]]; then
-	alias sudo='cygstart --action=runas'
-fi
 
 # collapse spaces into tabs in-place
 # spacetotab <FILE> [WIDTH=4]
@@ -60,7 +29,8 @@ function spacetotab () {
 	mv "$1.tmp" "$1"
 }
 
-source $ZDOTDIR/completions.zsh
+source $ZDOTDIR/utils.zsh
+source $ZDOTDIR/completion.zsh
 source $ZDOTDIR/history.zsh
 source $ZDOTDIR/vi-mode.zsh
 source $ZDOTDIR/prompt.zsh