mirror of
https://github.com/NotXia/dotfiles.git
synced 2025-12-14 18:11:52 +01:00
Add zsh config
This commit is contained in:
1
.oh-my-zsh/custom/aliases.zsh
Normal file
1
.oh-my-zsh/custom/aliases.zsh
Normal file
@ -0,0 +1 @@
|
||||
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
|
||||
1
.oh-my-zsh/custom/plugins/zsh-autosuggestions
Submodule
1
.oh-my-zsh/custom/plugins/zsh-autosuggestions
Submodule
Submodule .oh-my-zsh/custom/plugins/zsh-autosuggestions added at c3d4e576c9
Submodule .oh-my-zsh/custom/plugins/zsh-syntax-highlighting added at e0165eaa73
18
.oh-my-zsh/custom/themes/mine.zsh-theme
Normal file
18
.oh-my-zsh/custom/themes/mine.zsh-theme
Normal file
@ -0,0 +1,18 @@
|
||||
prompt_virtualenv() {
|
||||
local env=""
|
||||
|
||||
if [[ -n "$CONDA_DEFAULT_ENV" ]]; then
|
||||
env="%F{magenta}(conda:$CONDA_DEFAULT_ENV) "
|
||||
elif [[ -n "$VIRTUAL_ENV" ]]; then
|
||||
env="%F{magenta}(env:$VIRTUAL_ENV) "
|
||||
fi
|
||||
|
||||
echo -n "$env"
|
||||
}
|
||||
|
||||
PROMPT='%B%F{cyan}%n@%m%F{blue} :: %B%F{green}%3~ $(git_prompt_info)$(prompt_virtualenv)%B%F{blue}»%f%b '
|
||||
RPS1='%(?..%F{red}%? ↵%f)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||
|
||||
Reference in New Issue
Block a user