forked from DustVoice/dotfiles
Switch from antigen to znap
This commit is contained in:
parent
4e2cb4f8a1
commit
b278a1608d
9 changed files with 28 additions and 2121 deletions
7
.antigen/.gitignore
vendored
7
.antigen/.gitignore
vendored
|
@ -1,7 +0,0 @@
|
||||||
/*
|
|
||||||
/*/
|
|
||||||
!/.gitignore
|
|
||||||
|
|
||||||
!/antigen.zsh
|
|
||||||
|
|
||||||
!/themes/
|
|
2057
.antigen/antigen.zsh
2057
.antigen/antigen.zsh
File diff suppressed because it is too large
Load diff
5
.antigen/themes/.gitignore
vendored
5
.antigen/themes/.gitignore
vendored
|
@ -1,5 +0,0 @@
|
||||||
/*
|
|
||||||
/*/
|
|
||||||
!/.gitignore
|
|
||||||
|
|
||||||
!/dustvoice.zsh-theme
|
|
|
@ -1,10 +0,0 @@
|
||||||
# user, host, full path, and time/date
|
|
||||||
# on two lines for easier vgrepping
|
|
||||||
# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
|
|
||||||
PROMPT=$'%b%{$fg[yellow]%}%n@%{$fg[magenta]%}%M %{$fg[green]%}%~
|
|
||||||
%{$fg_bold[white]%}%(!.#.$)%{$reset_color%} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%} %{$fg[red]%}X"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
|
|
16
.antigenrc
16
.antigenrc
|
@ -1,16 +0,0 @@
|
||||||
antigen use oh-my-zsh
|
|
||||||
|
|
||||||
antigen bundle colored-man-pages
|
|
||||||
antigen bundle colorzie
|
|
||||||
antigen bundle command-not-found
|
|
||||||
antigen bundle git
|
|
||||||
antigen bundle history-substring-search
|
|
||||||
|
|
||||||
antigen bundle zsh-users/zsh-completions
|
|
||||||
antigen bundle zsh-users/zsh-autosuggestions
|
|
||||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
||||||
antigen bundle softmoth/zsh-vim-mode
|
|
||||||
|
|
||||||
antigen theme $ADOTDIR/themes dustvoice
|
|
||||||
|
|
||||||
antigen apply
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,7 +2,6 @@
|
||||||
/*/
|
/*/
|
||||||
!/.gitignore
|
!/.gitignore
|
||||||
|
|
||||||
!/.antigenrc
|
|
||||||
!/.bashrc
|
!/.bashrc
|
||||||
!/.gitconfig
|
!/.gitconfig
|
||||||
!/.nvidia-xinitrc
|
!/.nvidia-xinitrc
|
||||||
|
@ -21,9 +20,9 @@
|
||||||
!/.zshrc
|
!/.zshrc
|
||||||
!/README.md
|
!/README.md
|
||||||
|
|
||||||
!/.antigen/
|
|
||||||
!/.config/
|
!/.config/
|
||||||
!/.gnupg/
|
!/.gnupg/
|
||||||
!/.weechat/
|
!/.weechat/
|
||||||
!/.ssh/
|
!/.ssh/
|
||||||
|
!/.znap/
|
||||||
!/Wallpapers/
|
!/Wallpapers/
|
||||||
|
|
3
.znap/.gitignore
vendored
Normal file
3
.znap/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/*
|
||||||
|
/*/
|
||||||
|
!/.gitignore
|
1
.znap/dustvoice-zsh-theme
Submodule
1
.znap/dustvoice-zsh-theme
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 47aa418bdf8f6f73ce2159d1bb7e02047c8fc6fb
|
47
.zshrc
47
.zshrc
|
@ -1,28 +1,13 @@
|
||||||
# Path to your oh-my-zsh installation.
|
export ZDOTDIR="$HOME/.znap"
|
||||||
export ADOTDIR="$HOME/.antigen"
|
|
||||||
|
|
||||||
ANTIGEN_ZSH="$ADOTDIR/antigen.zsh"
|
ZNAPDIR="$ZDOTDIR/zsh-snap"
|
||||||
ANTIGENRC="$HOME/.antigenrc"
|
ZNAP_ZSH="$ZNAPDIR/znap.zsh"
|
||||||
ANTIGEN_LOG="$ADOTDIR/antigen.log"
|
ZNAP_LOG="$ADOTDIR/antigen.log"
|
||||||
|
|
||||||
# Set name of the theme to load --- if set to "random", it will
|
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
||||||
ZSH_THEME="dustvoice"
|
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
|
||||||
ENABLE_CORRECTION="true"
|
ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# You can set one of the optional three formats:
|
|
||||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
# or set a custom format using the strftime function format specifications,
|
|
||||||
# see 'man strftime' for details.
|
|
||||||
HIST_STAMPS="yyyy-mm-dd"
|
HIST_STAMPS="yyyy-mm-dd"
|
||||||
|
|
||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
|
@ -33,11 +18,13 @@ setopt HIST_IGNORE_DUPS
|
||||||
setopt HIST_IGNORE_ALL_DUPS
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
setopt COMPLETE_ALIASES
|
setopt COMPLETE_ALIASES
|
||||||
|
|
||||||
if [[ -a $ANTIGEN_ZSH && -a $ANTIGENRC ]]; then
|
if [[ -a $ZNAP_ZSH ]]; then
|
||||||
ZSH_AUTOSUGGEST_USE_ASYNC="true"
|
ZSH_AUTOSUGGEST_USE_ASYNC="true"
|
||||||
ZSH_AUTOSUGGEST_STRATEGY=(history)
|
ZSH_AUTOSUGGEST_STRATEGY=(history)
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=5
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=5
|
||||||
|
|
||||||
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=( main brackets )
|
||||||
|
|
||||||
MODE_CURSOR_DEFAULT="white blinking bar"
|
MODE_CURSOR_DEFAULT="white blinking bar"
|
||||||
MODE_CURSOR_VICMD="white steady block"
|
MODE_CURSOR_VICMD="white steady block"
|
||||||
MODE_CURSOR_VIINS="white blinking bar"
|
MODE_CURSOR_VIINS="white blinking bar"
|
||||||
|
@ -45,14 +32,26 @@ if [[ -a $ANTIGEN_ZSH && -a $ANTIGENRC ]]; then
|
||||||
MODE_CURSOR_REPLACE="red steady underline"
|
MODE_CURSOR_REPLACE="red steady underline"
|
||||||
MODE_CURSOR_VISUAL="white steady block"
|
MODE_CURSOR_VISUAL="white steady block"
|
||||||
|
|
||||||
source $ANTIGEN_ZSH
|
KEYTIMEOUT=5
|
||||||
|
|
||||||
antigen init $ANTIGENRC
|
source $ZNAP_ZSH
|
||||||
|
|
||||||
|
znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance,colored-man-pages,colorzie,command-not-found,history}
|
||||||
|
|
||||||
|
znap prompt dustvoice/dustvoice-zsh-theme
|
||||||
|
|
||||||
|
znap source zsh-users/zsh-completions
|
||||||
|
|
||||||
|
znap source zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
|
znap source zsh-users/zsh-syntax-highlighting
|
||||||
|
|
||||||
|
znap source zsh-users/zsh-history-substring-search
|
||||||
|
|
||||||
|
znap source softmoth/zsh-vim-mode
|
||||||
|
|
||||||
bindkey -M vicmd '^K' history-substring-search-up
|
bindkey -M vicmd '^K' history-substring-search-up
|
||||||
bindkey -M vicmd '^J' history-substring-search-down
|
bindkey -M vicmd '^J' history-substring-search-down
|
||||||
|
|
||||||
KEYTIMEOUT=5
|
|
||||||
else
|
else
|
||||||
PS1=$'%b%n@%M %~
|
PS1=$'%b%n@%M %~
|
||||||
%(!.#.$) '
|
%(!.#.$) '
|
||||||
|
|
Loading…
Reference in a new issue