feat(home): zsh improvements

This commit is contained in:
alina 🌸 2024-04-23 13:11:10 +03:00
parent 99e3934ce5
commit 68476ffced
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
3 changed files with 11 additions and 11 deletions

View file

@ -12,6 +12,7 @@
jq jq
micro micro
comma comma
carapace
inputs.nil.packages.${system}.default inputs.nil.packages.${system}.default
inputs.agenix.packages.${system}.default inputs.agenix.packages.${system}.default
]; ];

View file

@ -29,6 +29,7 @@
android-tools android-tools
imagemagick imagemagick
rustup rustup
yt-dlp
]; ];
home.file.".config/alacritty/alacritty.toml".source = ./alacritty.toml; home.file.".config/alacritty/alacritty.toml".source = ./alacritty.toml;

View file

@ -65,14 +65,6 @@ in {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
# oh-my-zsh = {
# enable = true;
# theme = "agnoster";
# extraConfig = ''
# zstyle ':bracketed-paste-magic' active-widgets '.self-*'
# '';
# };
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
@ -93,6 +85,10 @@ in {
export STARSHIP_CONFIG=${(pkgs.formats.toml {}).generate "starship.toml" starshipConfig} export STARSHIP_CONFIG=${(pkgs.formats.toml {}).generate "starship.toml" starshipConfig}
eval "$(${pkgs.starship}/bin/starship init zsh)" eval "$(${pkgs.starship}/bin/starship init zsh)"
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
zstyle ':completion:*' format $'\e[2;37mcompleting %d\e[m'
source <(carapace _carapace zsh)
CASE_SENSITIVE="false" CASE_SENSITIVE="false"
HYPHEN_INSENSITIVE="true" HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true" ENABLE_CORRECTION="true"
@ -104,8 +100,10 @@ in {
autoload -U down-line-or-beginning-search autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search # Up bindkey "^[[A" up-line-or-beginning-search
bindkey "^[[B" down-line-or-beginning-search # Down bindkey "^[OA" up-line-or-beginning-search
bindkey "^[[B" down-line-or-beginning-search
bindkey "^[OB" down-line-or-beginning-search
WORDCHARS="*?_-.[]~=&;!#$%^" WORDCHARS="*?_-.[]~=&;!#$%^"
@ -113,7 +111,7 @@ in {
autoload -Uz compinit autoload -Uz compinit
compinit compinit
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list ''' 'm:{a-zA-Z}={A-Za-z}'
if command -v micro &> /dev/null; then if command -v micro &> /dev/null; then
export EDITOR="micro" export EDITOR="micro"