Migrate zsh config
This commit is contained in:
@ -8,6 +8,6 @@
|
||||
./security/gpg.nix
|
||||
./security/pass.nix
|
||||
./shell/git.nix
|
||||
./shell/zsh.nix
|
||||
./shell/zsh
|
||||
];
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
export GPG_TTY=$TTY
|
||||
|
||||
## Aliases
|
||||
source "${XDG_CONFIG_HOME:-${HOME}/.config}/.aliasrc"
|
||||
source "$ZDOTDIR/aliases.zsh"
|
||||
|
||||
## Colors
|
||||
autoload -U colors && colors
|
||||
@ -78,25 +78,25 @@ unsetopt BEEP
|
||||
####
|
||||
|
||||
## Autosuggest
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null
|
||||
# source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null
|
||||
|
||||
## History substring search
|
||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh 2>/dev/null
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
# ## History substring search
|
||||
# source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh 2>/dev/null
|
||||
# bindkey -M vicmd 'k' history-substring-search-up
|
||||
# bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
## Highlighting
|
||||
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
||||
# ## Highlighting
|
||||
# source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
||||
|
||||
## Enhanced vim mode
|
||||
MODE_INDICATOR=""
|
||||
MODE_CURSOR_VIINS="#b77ee0 blinking bar"
|
||||
MODE_CURSOR_REPLACE="$MODE_CURSOR_VIINS #ff3334"
|
||||
MODE_CURSOR_VICMD="#b77ee0 block"
|
||||
MODE_CURSOR_SEARCH="#e7c547 steady underline"
|
||||
MODE_CURSOR_VISUAL="$MODE_CURSOR_VICMD steady bar"
|
||||
MODE_CURSOR_VLINE="$MODE_CURSOR_VISUAL #54ced6"
|
||||
source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh 2>/dev/null
|
||||
# ## Enhanced vim mode
|
||||
# MODE_INDICATOR=""
|
||||
# MODE_CURSOR_VIINS="#b77ee0 blinking bar"
|
||||
# MODE_CURSOR_REPLACE="$MODE_CURSOR_VIINS #ff3334"
|
||||
# MODE_CURSOR_VICMD="#b77ee0 block"
|
||||
# MODE_CURSOR_SEARCH="#e7c547 steady underline"
|
||||
# MODE_CURSOR_VISUAL="$MODE_CURSOR_VICMD steady bar"
|
||||
# MODE_CURSOR_VLINE="$MODE_CURSOR_VISUAL #54ced6"
|
||||
# source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh 2>/dev/null
|
||||
|
||||
|
||||
####
|
@ -35,7 +35,8 @@ in {
|
||||
};
|
||||
|
||||
home.configFile = {
|
||||
"zsh" = {};
|
||||
"zsh/.zshrc" = { source = ./.zshrc; };
|
||||
"zsh/aliases.zsh" = { source = ./aliases.zsh };
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user