Fish formatting and ls aliases

This commit is contained in:
Daniel Flanagan 2024-06-13 18:46:59 -05:00
parent c9787b39f8
commit 498caa4578
3 changed files with 26 additions and 19 deletions

View file

@ -47,13 +47,14 @@
}; };
shellAbbrs = {}; shellAbbrs = {};
shellAliases = { shellAliases = {
l = "br";
ls = "eza --group-directories-first --classify"; ls = "eza --group-directories-first --classify";
la = "eza -la --group-directories-first --classify"; l = "ls";
lA = "eza -la --all --group-directories-first --classify"; ll = "ls --long --group";
tree = "eza --tree --level=3"; la = "ll --all";
lt = "eza -l --sort=modified"; lA = "la --all"; # --all twice to show . and ..
lat = "eza -la --sort=modified"; tree = "ls --tree --level=3";
lt = "ll --sort=modified";
lat = "la --sort=modified";
lc = "lt --sort=accessed"; lc = "lt --sort=accessed";
lT = "lt --reverse"; lT = "lt --reverse";
lC = "lc --reverse"; lC = "lc --reverse";

View file

@ -81,3 +81,6 @@ end
for dir in ~/.cargo/bin ~/.nimble/bin ~/.local/bin /opt/homebrew/bin for dir in ~/.cargo/bin ~/.nimble/bin ~/.local/bin /opt/homebrew/bin
test -d $dir && fish_add_path $dir test -d $dir && fish_add_path $dir
end end
# don't let other users read my files by default
umask 077

View file

@ -149,11 +149,14 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
networking = { networking = {
firewall = { firewall = let
terraria = 7777;
stardew-valley = 24642;
in {
enable = true; enable = true;
allowPing = true; allowPing = true;
allowedTCPPorts = [22 7777]; allowedTCPPorts = [22 terraria stardew-valley];
allowedUDPPorts = []; allowedUDPPorts = [terraria stardew-valley];
}; };
}; };