2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-23 04:27:31 +01:00
nixos-config/home/zsh.nix

66 lines
1.4 KiB
Nix
Raw Normal View History

2023-08-08 08:51:20 +02:00
{ pkgs, lib, inputs, config, ... }: {
2023-07-27 11:33:44 +02:00
programs = {
zsh = {
enable = true;
prezto = {
enable = true;
editor = {
keymap = "vi";
dotExpansion = true;
};
prompt = {
theme = "paradox";
pwdLength = "long";
showReturnVal = true;
};
terminal.autoTitle = true;
pmodules = [
"environment"
"terminal"
"editor"
"history"
# "directory"
2023-07-27 11:33:44 +02:00
"spectrum"
# "utility"
# "completion"
2023-07-27 11:33:44 +02:00
"git"
"autosuggestions"
"syntax-highlighting"
"history-substring-search"
"prompt"
];
};
2023-08-08 08:51:20 +02:00
initExtra = ''
# Autocomplete ../
zstyle ':completion:*' special-dirs true
2023-08-18 19:06:07 +02:00
export PATH="$HOME/.config/emacs/bin:$PATH"
2023-11-02 11:14:28 +01:00
unalias "gs"
2023-08-08 08:51:20 +02:00
'';
2023-07-27 11:33:44 +02:00
shellAliases = {
l = "exa -l";
c = "z";
2023-07-27 11:33:44 +02:00
tree = "exa --tree --icons";
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";
2023-08-21 23:54:18 +02:00
em = "emacsclient -c";
emnw = "emacsclient -nw";
2023-07-27 11:33:44 +02:00
gst = "git status -sb";
gcm = "git commit -m";
gps = "git push";
gpl = "git pull";
2023-11-02 11:14:28 +01:00
"git clone git clone" = "git clone";
2023-07-27 11:33:44 +02:00
};
};
zoxide = {
enable = true;
enableZshIntegration = true;
};
2023-07-27 11:33:44 +02:00
};
2023-08-08 08:51:20 +02:00
}