Created
February 26, 2026 20:00
-
-
Save kesk/32f808ff1ae39fd2e2c2e46f331dbfd8 to your computer and use it in GitHub Desktop.
Z Shell
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
| # Aliaes | |
| alias ..="cd .." | |
| alias ll="ls -l" | |
| # Options | |
| setopt EXTENDED_HISTORY | |
| setopt autocd | |
| # Set up tab completion | |
| autoload -Uz compinit && compinit | |
| source $HOME/.local/opt/fzf-tab/fzf-tab.plugin.zsh | |
| # Set up fzf key bindings and fuzzy completion | |
| source <(fzf --zsh) | |
| # Jump around (z) | |
| source $HOME/.local/opt/z.sh | |
| # Git branch prompt | |
| autoload -Uz vcs_info | |
| precmd_vcs_info() { vcs_info } | |
| precmd_functions+=( precmd_vcs_info ) | |
| setopt prompt_subst | |
| RPROMPT=\$vcs_info_msg_0_ | |
| zstyle ':vcs_info:git:*' formats '%b' | |
| PROMPT='%B%n@%m %1~ %F{red}❱%F{yellow}❱%F{green}❱%f%b ' | |
| function print_colors() { | |
| for i in {30..37}; do | |
| echo -e "\e[0;${i}m[0;${i}m\e[0m" | |
| done | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment