Skip to content

Instantly share code, notes, and snippets.

@zulonas
Created March 6, 2024 16:04
Show Gist options
  • Save zulonas/9133253691da8c9367aea694d988968a to your computer and use it in GitHub Desktop.
Save zulonas/9133253691da8c9367aea694d988968a to your computer and use it in GitHub Desktop.
export ZSH="$HOME/.oh-my-zsh"
### PROMT STYLE
git_prompt_string() {
local branch=$(git_current_branch)
if [[ -n $branch ]]; then
echo " [$branch]"
fi
}
export PROMPT='%{$fg_bold[green]%}%n@%m%{$fg_bold[white]%}:%{$fg_bold[blue]%}%~%{$fg_bold[white]%}%(!.#.$)%f$(git_prompt_string) %{$reset_color%}'
### ZSH SETTINGS
zstyle ':omz:update' mode reminder # auto-update behavior
### PLUGINS
plugins=(
git
zsh-autosuggestions
wd
fzf
)
source $ZSH/oh-my-zsh.sh
### ALIASES
alias gr='cd "$(git rev-parse --show-toplevel)"'
# fzf
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
export FZF_CTRL_T_OPTS="--preview 'head -n 200 {}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment