Created
September 27, 2025 05:39
-
-
Save vigosan/4bfaa1b3049f1bb7567ed32c013dcf60 to your computer and use it in GitHub Desktop.
zshrc carles
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
| #!/usr/bin/env zsh | |
| export CLICOLOR=1 | |
| export DOTFILES=$HOME/.dotfiles | |
| export EDITOR=vim | |
| export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore-vcs --glob "!{**/node_modules/*,.git/*,public/*}"' | |
| export GIT_EDITOR=nvim | |
| export INCLUDES=$HOME/.local/share/dotfiles | |
| export KEYTIMEOUT=1 | |
| export LC_ALL=en_US.UTF-8 | |
| export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/bin:/usr/sbin:/sbin | |
| export TERM="xterm-256color" | |
| export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' | |
| set -o emacs | |
| source $DOTFILES/zsh/aliases | |
| source $INCLUDES/zsh/zsh-completions/zsh-completions.plugin.zsh | |
| source $INCLUDES/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh | |
| source $INCLUDES/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh | |
| source $INCLUDES/zsh/zsh-z/zsh-z.plugin.zsh | |
| zstyle ':completion:*' menu select | |
| zstyle ':completion:*' completer _complete | |
| zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' | |
| autoload -U compinit && compinit | |
| autoload -U colors && colors | |
| autoload -U bashcompinit && bashcompinit | |
| autoload -U select-word-style | |
| select-word-style bash | |
| zmodload -i zsh/complist | |
| unsetopt menu_complete | |
| unsetopt flowcontrol | |
| setopt prompt_subst | |
| setopt always_to_end | |
| setopt append_history | |
| setopt auto_menu | |
| setopt complete_in_word | |
| setopt extended_history | |
| setopt hist_expire_dups_first | |
| setopt hist_ignore_dups | |
| setopt hist_ignore_space | |
| setopt hist_verify | |
| setopt inc_append_history | |
| setopt interactivecomments | |
| setopt share_history | |
| setopt auto_cd | |
| git_prompt() { | |
| BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\(.*\)/\1/') | |
| if [ ! -z $BRANCH ]; then | |
| echo -n "%F{yellow}$BRANCH" | |
| STATUS=$(git status --short 2> /dev/null) | |
| if [ ! -z "$STATUS" ]; then | |
| echo "%F{red}✗" | |
| fi | |
| fi | |
| } | |
| PS1=' | |
| %F{blue}%~$(git_prompt) | |
| %F{244}%# %F{reset}' | |
| eval "$(zoxide init --cmd z zsh)" | |
| eval "$(starship init zsh)" | |
| eval "$(mise activate zsh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment