Created
March 6, 2024 16:04
-
-
Save zulonas/9133253691da8c9367aea694d988968a to your computer and use it in GitHub Desktop.
This file contains 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
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