37 lines
797 B
Nix
37 lines
797 B
Nix
{
|
|
pkgs,
|
|
osConfig,
|
|
type,
|
|
...
|
|
}:
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableVteIntegration = true;
|
|
dirHashes = {
|
|
repos = "$HOME/GitRepos";
|
|
dl = "$HOME/Downloads";
|
|
};
|
|
initContent = # zsh
|
|
''
|
|
# Bind CTRL+Backspace to delete whole word
|
|
bindkey '^H' backward-kill-word
|
|
export SYSTEM_TYPE="${type}"
|
|
'';
|
|
# TODO: Look into whether we need to add the history attribute
|
|
profileExtra = # bash
|
|
''
|
|
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
|
dbus-run-session Hyprland
|
|
fi
|
|
'';
|
|
plugins = [
|
|
{
|
|
name = "vi-mode";
|
|
src = pkgs.zsh-vi-mode;
|
|
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
|
}
|
|
];
|
|
};
|
|
}
|