2023-08-08 08:51:20 +02:00
|
|
|
{ pkgs, lib, inputs, config, ... }: {
|
2023-07-27 11:33:44 +02:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
2024-09-13 14:10:29 +02:00
|
|
|
history.extended = true;
|
2023-07-27 11:33:44 +02:00
|
|
|
|
|
|
|
prezto = {
|
|
|
|
enable = true;
|
|
|
|
editor = {
|
|
|
|
keymap = "vi";
|
|
|
|
dotExpansion = true;
|
|
|
|
};
|
|
|
|
prompt = {
|
|
|
|
theme = "paradox";
|
|
|
|
pwdLength = "long";
|
|
|
|
showReturnVal = true;
|
|
|
|
};
|
|
|
|
terminal.autoTitle = true;
|
|
|
|
|
|
|
|
pmodules = [
|
|
|
|
"environment"
|
|
|
|
"terminal"
|
|
|
|
"editor"
|
|
|
|
"history"
|
2024-09-13 14:10:29 +02:00
|
|
|
"history-substring-search"
|
2023-12-07 10:22:35 +01:00
|
|
|
# "directory"
|
2023-07-27 11:33:44 +02:00
|
|
|
"spectrum"
|
2023-12-07 10:22:35 +01:00
|
|
|
# "utility"
|
|
|
|
# "completion"
|
2023-07-27 11:33:44 +02:00
|
|
|
"git"
|
|
|
|
"autosuggestions"
|
|
|
|
"syntax-highlighting"
|
|
|
|
"prompt"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-08-08 08:51:20 +02:00
|
|
|
initExtra = ''
|
|
|
|
# Autocomplete ../
|
|
|
|
zstyle ':completion:*' special-dirs true
|
2024-10-22 20:33:17 +02:00
|
|
|
export PATH="$HOME/.config/emacs/bin:$HOME/.cargo/bin:$PATH"
|
2023-11-02 11:14:28 +01:00
|
|
|
unalias "gs"
|
2024-09-30 15:46:31 +02:00
|
|
|
|
|
|
|
if [ -f ~/.config/zsh-extras ]; then
|
|
|
|
source ~/.config/zsh-extras
|
|
|
|
fi
|
2023-08-08 08:51:20 +02:00
|
|
|
'';
|
|
|
|
|
2023-07-27 11:33:44 +02:00
|
|
|
shellAliases = {
|
2023-10-03 01:26:14 +02:00
|
|
|
c = "z";
|
2024-09-30 15:46:31 +02:00
|
|
|
em = "emacsclient -c";
|
|
|
|
emnw = "emacsclient -nw";
|
|
|
|
grep = "grep --color=auto";
|
|
|
|
l = "exa -l";
|
|
|
|
ls = "ls --color=auto";
|
|
|
|
nd = "nix develop --command zsh";
|
2023-08-21 23:54:18 +02:00
|
|
|
s = "nix-shell --run zsh";
|
|
|
|
sp = "nix-shell --run zsh -p";
|
2023-10-05 17:32:21 +02:00
|
|
|
spu = "nix-shell -I nixpkgs=channel:nixos-unstable --run zsh -p";
|
2024-09-30 15:46:31 +02:00
|
|
|
tree = "exa --tree --icons";
|
|
|
|
|
|
|
|
"git clone git clone" = "git clone";
|
2023-07-27 11:33:44 +02:00
|
|
|
gcm = "git commit -m";
|
|
|
|
gpl = "git pull";
|
2024-09-30 15:46:31 +02:00
|
|
|
gps = "git push";
|
|
|
|
gst = "git status -sb";
|
2023-07-27 11:33:44 +02:00
|
|
|
};
|
|
|
|
};
|
2023-10-03 01:26:14 +02:00
|
|
|
|
|
|
|
zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
2023-07-27 11:33:44 +02:00
|
|
|
};
|
2023-08-08 08:51:20 +02:00
|
|
|
}
|