2024-02-14 21:49:54 +01:00
|
|
|
{ inputs, config, ... }:
|
|
|
|
{
|
|
|
|
# But we all know I love zsh
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2024-03-16 18:16:48 +01:00
|
|
|
autosuggestion.enable = true;
|
2024-02-14 21:49:54 +01:00
|
|
|
enableCompletion = true;
|
|
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
dotDir = ".config/zsh";
|
2024-02-18 14:50:24 +01:00
|
|
|
shellAliases = {
|
|
|
|
note = "nvim ~/Documents/wiki/notes.md";
|
|
|
|
wiki = "nvim ~/Documents/wiki/index.md";
|
2024-02-21 19:25:22 +01:00
|
|
|
lg = "lazygit";
|
2024-02-18 14:50:24 +01:00
|
|
|
};
|
2024-02-14 21:49:54 +01:00
|
|
|
envExtra = ''
|
|
|
|
# NNN settings
|
|
|
|
export NNN_FIFO="/tmp/nnn.fifo"
|
|
|
|
export NNN_SSHFS="sshfs -o follow_symlinks"
|
|
|
|
export NNN_TERMINAL="alacritty --class preview,preview"
|
|
|
|
|
|
|
|
# Catppuccin colors nnn
|
|
|
|
BLK="03" CHR="03" DIR="04" EXE="02" REG="07" HARDLINK="05" SYMLINK="05" MISSING="08" ORPHAN="01" FIFO="06" SOCK="03" UNKNOWN="01"
|
|
|
|
export NNN_COLORS="#04020301;4231"
|
|
|
|
export NNN_FCOLORS="$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$UNKNOWN"
|
|
|
|
'';
|
|
|
|
initExtra = ''
|
|
|
|
# VI Mode escape timeout fix
|
|
|
|
export KEYTIMEOUT=1
|
|
|
|
|
|
|
|
# Substring search settings
|
|
|
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
|
|
|
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
|
|
|
|
bindkey -M vicmd 'k' history-substring-search-up
|
|
|
|
bindkey -M vicmd 'j' history-substring-search-down
|
|
|
|
'';
|
|
|
|
initExtraFirst = ''
|
|
|
|
nitch
|
|
|
|
'';
|
|
|
|
zplug = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
{ name = "zap-zsh/supercharge"; }
|
|
|
|
{ name = "zap-zsh/completions"; }
|
|
|
|
{ name = "zap-zsh/vim"; }
|
|
|
|
{ name = "chivalryq/git-alias"; }
|
|
|
|
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
|
|
|
|
{ name = "MichaelAquilina/zsh-you-should-use"; }
|
|
|
|
{ name = "zsh-users/zsh-history-substring-search"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Eza settings
|
|
|
|
programs.eza = {
|
|
|
|
enable = true;
|
2024-03-16 17:50:13 +01:00
|
|
|
enableZshIntegration = true;
|
2024-02-14 21:49:54 +01:00
|
|
|
git = true;
|
|
|
|
icons = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Zoxide settings
|
|
|
|
programs.zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Starhip settings
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Fzf settings
|
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
}
|