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"; icons = "always";
enableBashIntegration = true; enableBashIntegration = true;
git = true; git = true;
extraOptions = [
"--group-directories-first"
"--all"
];
}; };
programs.zoxide = { programs.zoxide = {
@ -197,10 +201,7 @@
programs.bash = { programs.bash = {
enable = true; enable = true;
shellAliases = { shellAliases = {
ll = "eza -l"; ".." = "z ..";
la = "eza -la";
".." = "cd ..";
c = "cd && ls";
j = "jj"; j = "jj";
jgf = "jj git fetch"; jgf = "jj git fetch";
jgp = "jj git push"; jgp = "jj git push";
@ -217,10 +218,20 @@
jdiff = "jj diff"; jdiff = "jj diff";
jsq = "jj squash"; jsq = "jj squash";
nhs = "nh os switch"; nhs = "nh os switch";
nd = "nix develop";
h = "hx"; h = "hx";
vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}"; 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 = { programs.kitty = {