feat: configure z to l
This commit is contained in:
parent
58f40838e0
commit
632089c4c5
1 changed files with 16 additions and 5 deletions
21
home.nix
21
home.nix
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue