diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
| commit | ea8ff6d7638cdd1f36cc978f1734759158b969b0 (patch) | |
| tree | 18893c91594a2d58bb6757f592a076c5496e300e /.config/zsh/.zshrc | |
Initial commit
Diffstat (limited to '.config/zsh/.zshrc')
| -rw-r--r-- | .config/zsh/.zshrc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..e30dc7b --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,41 @@ +# Lines configured by zsh-newuser-install +HISTFILE=~/.cache/zsh/histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt extendedglob nomatch +unsetopt autocd beep +bindkey -e +# End of lines configured by zsh-newuser-install +# The following lines were added by compinstall +zstyle :compinstall filename '/home/andrew/.zshrc' + +autoload -Uz compinit +#compinit +compinit -d $XDG_CACHE_HOME/zsh/zcompdump +# End of lines added by compinstall + +# Turn on clint prompt +autoload -Uz promptinit +promptinit +prompt clint + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# Aliases +alias la='ls -lhFA' +alias ll='ls -lhF' +alias l='ls -CF' +alias dotfiles="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME'" +alias dotstat="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' status" +alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add -f" + |