feat: configure z to l

This commit is contained in:
Jet Pham 2026-02-28 14:02:46 -08:00
parent 58f40838e0
commit 632089c4c5
No known key found for this signature in database

View file

@ -181,6 +181,10 @@
icons = "always";
enableBashIntegration = true;
git = true;
extraOptions = [
"--group-directories-first"
"--all"
];
};
programs.zoxide = {
@ -197,10 +201,7 @@
programs.bash = {
enable = true;
shellAliases = {
ll = "eza -l";
la = "eza -la";
".." = "cd ..";
c = "cd && ls";
".." = "z ..";
j = "jj";
jgf = "jj git fetch";
jgp = "jj git push";
@ -217,10 +218,20 @@
jdiff = "jj diff";
jsq = "jj squash";
nhs = "nh os switch";
nd = "nix develop";
h = "hx";
vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}";
};
initExtra = ''
# Automatically list directory contents when changing directories
auto_l_on_cd() {
if [ "$__LAST_PWD" != "$PWD" ]; then
l
__LAST_PWD="$PWD"
fi
}
export PROMPT_COMMAND="auto_l_on_cd; $PROMPT_COMMAND"
__LAST_PWD="$PWD"
'';
};
programs.kitty = {