shell stuff

This commit is contained in:
Rachel Lambda Samuelsson 2024-08-27 14:30:04 +02:00
parent 639e484dcf
commit 43564d0f32

View File

@ -9,9 +9,16 @@
rm = "rm -i"; rm = "rm -i";
cal = "cal -m"; cal = "cal -m";
ls = "ls --color"; ls = "ls --color";
cd = "z";
}; };
envExtra = '' envExtra = ''
export PS1=$'%B%n%b@%B%m%b: %~\nλ ' PROMPT=$'%B%n%b@%B%m%b: %~ %F{red}''${vcs_info_msg_0_}%f\nλ '
KEYTIMEOUT=1
MODE_INDICATOR_VICMD='%K{10}%F{8}%B NORMAL %k%f%b'
MODE_INDICATOR_REPLACE='%K{9}%F{8}%B REPLACE %k%f%b'
MODE_INDICATOR_SEARCH='%K{13}%F{8}%B SEARCH %k%f%b'
MODE_INDICATOR_VISUAL='%K{12}%F{8}%B VISUAL %k%f%b'
MODE_INDICATOR_VLINE='%K{12}%F{8}%B V-LINE %k%f%b'
export BROWSER=firefox export BROWSER=firefox
export XINITRC="${common.homeDir}/bin/xinitrc" export XINITRC="${common.homeDir}/bin/xinitrc"
export XAUTHORITY="${common.homeDir}/.local/share/Xauthority" export XAUTHORITY="${common.homeDir}/.local/share/Xauthority"
@ -53,13 +60,15 @@
nix shell --impure "$@" nix shell --impure "$@"
} }
# vi mode options autoload -Uz add-zsh-hook vcs_info
KEYTIMEOUT=1 setopt prompt_subst
MODE_INDICATOR_VICMD='%K{10}%F{8}%B NORMAL %k%f%b' add-zsh-hook precmd vcs_info
MODE_INDICATOR_REPLACE='%K{9}%F{8}%B REPLACE %k%f%b'
MODE_INDICATOR_SEARCH='%K{13}%F{8}%B SEARCH %k%f%b' zstyle ':vcs_info:*' check-for-changes true
MODE_INDICATOR_VISUAL='%K{12}%F{8}%B VISUAL %k%f%b' zstyle ':vcs_info:*' unstagedstr '*'
MODE_INDICATOR_VLINE='%K{12}%F{8}%B V-LINE %k%f%b' zstyle ':vcs_info:*' stagedstr '+'
zstyle ':vcs_info:git:*' formats '(%b%u%c)'
zstyle ':vcs_info:git:*' actionformats '(%b|%a%u%c)'
''; '';
plugins = [ plugins = [
{ {
@ -78,4 +87,7 @@
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.zoxide = {
enable = true;
};
} }