Created
January 29, 2023 08:24
-
-
Save rekyuu/d78b7d4ef7ccc8c5488c4a9a79c7bc7e to your computer and use it in GitHub Desktop.
.zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.zshrc | |
| # Exports | |
| . ~/.zprofile | |
| # Keybinds | |
| bindkey "^[[H" beginning-of-line | |
| bindkey "^[[F" end-of-line | |
| bindkey "^[[3~" delete-char | |
| # Aliases | |
| alias cbonsai='cbonsai -li' | |
| alias ls='ls -Ahl --color=auto --group-directories-first' | |
| #alias ncmpcpp='ncmpcpp-ueberzug' | |
| alias pipes='pipes.sh -c 1 -c 2 -c 3 -c 4 -c 5 -c 6' | |
| alias py='python' | |
| alias tree='tree -la' | |
| alias vis='cava' | |
| # Prompt customization | |
| autoload -U colors && colors | |
| autoload -Uz vcs_info | |
| setopt prompt_subst | |
| zstyle ':vcs_info:*' enable git svn | |
| zstyle ':vcs_info:*' check-for-changes true | |
| zstyle ':vcs_info:*' actionformats "%B%F{green}%c%u%f %B%b%f" | |
| zstyle ':vcs_info:*' formats "%B%F{green}%c%u%f %B%b%f" | |
| precmd() { vcs_info } | |
| ITALICS_START=$'%{\e[3m%}' | |
| ITALICS_END=$'%{\e[0m%}' | |
| PROMPT=$'%B%n@%m %F{blue}%2~%f »%b ' | |
| RPROMPT='${vcs_info_msg_0_}' | |
| # History | |
| HISTFILE=~/.histfile | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| setopt INC_APPEND_HISTORY | |
| export HISTTIMEFORMAT="[%F %T] " | |
| setopt EXTENDED_HISTORY | |
| setopt HIST_FIND_NO_DUPS | |
| setopt HIST_IGNORE_ALL_DUPS | |
| # Compinit | |
| zstyle :compinstall filename '~/.zshrc' | |
| autoload -Uz compinit | |
| compinit | |
| # Autosuggestions | |
| source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh | |
| # Syntax highlighting | |
| source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
| ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) | |
| typeset -A ZSH_HIGHLIGHT_STYLES | |
| ZSH_HIGHLIGHT_STYLES[arg0]='fg=blue,bold' | |
| ZSH_HIGHLIGHT_STYLES[path]=none | |
| ZSH_HIGHLIGHT_STYLES[precommand]='fg=blue,bold' | |
| ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=green' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment