diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2022-02-20 09:28:22 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2022-02-20 09:29:15 +0400 |
| commit | 19d9739151bb92ddf9af77efa7b41d16a0971ff1 (patch) | |
| tree | 66d73b4c44ffab172edd1ffbad532e61a44bd625 /.config | |
| parent | e015e0f18488aa6d59626d2a239a416ba89c8c66 (diff) | |
Moved zsh config to home directory
Diffstat (limited to '.config')
| -rw-r--r-- | .config/zsh/.zshrc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc deleted file mode 100644 index e2ede69..0000000 --- a/.config/zsh/.zshrc +++ /dev/null @@ -1,54 +0,0 @@ -# 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 --group-directories-first' - alias gcc='gcc -fdiagnostics-color=always' - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' - alias pacman='pacman --color=always' - alias yay='yay --color=always' -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 dotdiff="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' diff" -alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add -f" -alias e="$EDITOR" - -# XDG aliases -alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"' -alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' -alias sqlite3='sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc' - - -# ZSH config -HISTFILE=~/.cache/zsh/histfile -HISTSIZE=1000 -SAVEHIST=1000 -setopt extendedglob nomatch -unsetopt autocd beep -bindkey -e -zstyle :compinstall filename '/home/andrew/.zshrc' -autoload -Uz compinit -compinit -d $XDG_CACHE_HOME/zsh/zcompdump - -cdf() { - cd $(find ~ -type d &>/dev/null | fzf) -} - -set_ps1() { - # red color if current user us root, otherwise - green - [ "$USER" = "root" ] && UCOLOR="%B%F{red}" || UCOLOR="%B%F{green}" - [ "$USER" = "root" ] && END="#" || END="$" - BLUE="%B%F{blue}" - PURPLE="%B%F{magenta}" - STOP="%f%b" - export PS1="%T $UCOLOR%n$STOP@$PURPLE%m$STOP:$BLUE%~$STOP $END " -} - -set_ps1 |