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 = {};
shellAliases = {
l = "br";
ls = "eza --group-directories-first --classify";
la = "eza -la --group-directories-first --classify";
lA = "eza -la --all --group-directories-first --classify";
tree = "eza --tree --level=3";
lt = "eza -l --sort=modified";
lat = "eza -la --sort=modified";
l = "ls";
ll = "ls --long --group";
la = "ll --all";
lA = "la --all"; # --all twice to show . and ..
tree = "ls --tree --level=3";
lt = "ll --sort=modified";
lat = "la --sort=modified";
lc = "lt --sort=accessed";
lT = "lt --reverse";
lC = "lc --reverse";

View file

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

View file

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