mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-06 01:18:44 +00:00
Switch to dotbot
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.zcompdump
|
||||
.zsh_history
|
||||
plugins/bd
|
||||
@@ -0,0 +1,28 @@
|
||||
GIT_PROMPT_EXECUTABLE="shell"
|
||||
source $ZDOTDIR/plugins/zsh-git-prompt/zshrc.sh
|
||||
|
||||
function git_email_prompt() {
|
||||
GIT_USER=$(git config user.email)
|
||||
echo $GIT_USER
|
||||
}
|
||||
|
||||
PROMPT='%B%U%F{cyan}% %m%u%F{green} %~$(git_super_status)%f %{%G%}%b '
|
||||
RPROMPT='%B%F{42}% $(git_email_prompt)%f %F{cyan}%*%b'
|
||||
|
||||
# No right padding on RPROMPT
|
||||
ZLE_RPROMPT_INDENT=0
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %B%F{cyan}% ("
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%B%F{cyan}% )"
|
||||
ZSH_THEME_GIT_PROMPT_SEPARATOR="%B%F{cyan}% |"
|
||||
ZSH_THEME_GIT_PROMPT_BRANCH=""
|
||||
ZSH_THEME_GIT_PROMPT_STAGED="%F{green}% %{●%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CONFLICTS="%B%F{red}% %{✖%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CHANGED="%B%F{red}% %{✚%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_STASHED="%B%F{251}% %{⚑%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_BEHIND="%B%F{magenta}% %{↓%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_AHEAD="%B%F{yellow}% %{↑%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%B%F{42}% %{…%G%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%B%F{cyan}% %{✔%G%}"
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_LOCAL=" %B%F{42}% L"
|
||||
@@ -0,0 +1,88 @@
|
||||
|
||||
ZDOTDIR=~/.config/zsh
|
||||
|
||||
setopt auto_cd
|
||||
setopt no_case_glob
|
||||
setopt glob_complete
|
||||
|
||||
# setopt correct
|
||||
# setopt correct_all
|
||||
|
||||
setopt completeinword # not just at the end
|
||||
|
||||
# --------
|
||||
# Comp init
|
||||
# --------
|
||||
|
||||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' completer _complete _ignored _correct _approximate
|
||||
zstyle :compinstall filename '/home/georgi/.config/zsh/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
|
||||
# Load bashcompinit for some old bash completions
|
||||
autoload bashcompinit && bashcompinit
|
||||
|
||||
|
||||
# --------
|
||||
# History
|
||||
# --------
|
||||
|
||||
HISTFILE=${ZDOTDIR:-~}/.zsh_history
|
||||
SAVEHIST=50000
|
||||
HISTSIZE=10000
|
||||
HISTORY_IGNORE="(ls|cd|pwd|zsh|exit|cd ..)"
|
||||
|
||||
setopt extended_history # record start time and elapsed time in history file
|
||||
setopt share_history # share history across multiple zsh sessions
|
||||
setopt append_history # append to history
|
||||
setopt inc_append_history # adds commands as they are typed, not at shell exit
|
||||
setopt hist_ignore_dups # do not store duplications
|
||||
setopt hist_reduce_blanks # removes blank lines from history
|
||||
setopt hist_verify # show !! before executing
|
||||
setopt hist_ignore_space # remove command lines beginning with a space from history
|
||||
|
||||
setopt no_beep # Don't beep on command input error
|
||||
|
||||
# --------
|
||||
# Source & include
|
||||
# --------
|
||||
|
||||
# Include functions
|
||||
fpath+=~/Git/dotfiles/functions
|
||||
autoload extract
|
||||
|
||||
[ -f $ZDOTDIR/.zshrc.local ] && source $ZDOTDIR/.zshrc.local
|
||||
[ -f ~/.config/.aliases ] && source ~/.config/.aliases
|
||||
[ -f ~/.config/.aliases.local ] && source ~/.config/.aliases.local
|
||||
|
||||
# --------
|
||||
# Plugins
|
||||
# --------
|
||||
if type brew >/dev/null 2>&1; then
|
||||
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
fi
|
||||
|
||||
source "$ZDOTDIR/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh"
|
||||
|
||||
# https://github.com/arzzen/calc.plugin.zsh
|
||||
source "$ZDOTDIR/plugins/calc.plugin.zsh/calc.plugin.zsh"
|
||||
|
||||
# https://github.com/lukechilds/zsh-better-npm-completion
|
||||
source "$ZDOTDIR/plugins/zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh"
|
||||
|
||||
# https://github.com/sunlei/zsh-ssh
|
||||
source "$ZDOTDIR/plugins/zsh-ssh/zsh-ssh.zsh"
|
||||
|
||||
# https://github.com/Tarrasch/zsh-bd
|
||||
source "$ZDOTDIR/plugins/bd/bd.zsh"
|
||||
|
||||
|
||||
|
||||
# Prompt
|
||||
source $ZDOTDIR/.zprompt
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
Submodule
+1
Submodule home/config/zsh/plugins/calc.plugin.zsh added at 5b4c85977b
+1
Submodule home/config/zsh/plugins/zsh-better-npm-completion added at 02ca404a9b
Submodule
+1
Submodule home/config/zsh/plugins/zsh-git-prompt added at 2701e8ac31
Submodule
+1
Submodule home/config/zsh/plugins/zsh-ssh added at f73b78bc8f
Submodule
+1
Submodule home/config/zsh/plugins/zsh-vim-mode added at 1f9953b7d6
Reference in New Issue
Block a user