diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:43:11 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:45:26 +0200 |
commit | 7b9400b9453a63477d17ad212afba5b5644ae6d3 (patch) | |
tree | 51d5db3356942501cafeb6195234908297625c91 /modules/by-name/zs/zsh/config/zsh-init.zsh | |
parent | refactor(modules/legacy/conf/zsh): Modernize module (diff) | |
download | nixos-config-7b9400b9453a63477d17ad212afba5b5644ae6d3.tar.gz nixos-config-7b9400b9453a63477d17ad212afba5b5644ae6d3.zip |
refactor(modules/legacy/conf/zsh): Parameterize and move to new `by-name`
Diffstat (limited to 'modules/by-name/zs/zsh/config/zsh-init.zsh')
-rw-r--r-- | modules/by-name/zs/zsh/config/zsh-init.zsh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/by-name/zs/zsh/config/zsh-init.zsh b/modules/by-name/zs/zsh/config/zsh-init.zsh new file mode 100644 index 00000000..cd8d34a9 --- /dev/null +++ b/modules/by-name/zs/zsh/config/zsh-init.zsh @@ -0,0 +1,42 @@ +#!/usr/bin/env zsh +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Flex on the ubuntu users +#[ "$NVIM" ] || hyfetch +[ "$NVIM" ] || task next +#loginctl show-session $XDG_SESSION_ID + +## Enable colors and change prompt: +#autoload -Uz colors && colors +#autoload -Uz compinit && compinit -u +## Edit line in vim buffer ctrl-v +autoload -Uz edit-command-line +zle -N edit-command-line +## Enter vim buffer from normal mode +#autoload -Uz edit-command-line && zle -N edit-command-line +bindkey "^V" edit-command-line + +## zstyles +#zstyle ':completion:*' menu select +## Auto complete with case insensitivity +#zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + +#zmodload zsh/complist +#fpath+=/home/dt/.config/zsh/comp +#compinit +#_comp_options+=(globdots) # Include hidden files. +# +## Source configs +#source "${ZDOTDIR}/ali.sh" +#source "${ZDOTDIR}/prompt.sh" +#source "${ZDOTDIR}/hotkeys.sh" +#source "./${path_custom_cursor}" +#source ~/.local/lib/shell/lib +# +## Load zsh-syntax-highlighting +#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +## Suggest aliases for commands +#source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh +# +##eval "$(lua ~/scripts/z.lua --init zsh enhanced)" |