Skip to content

Commit c922c6a

Browse files
committed
feat: update fish aliases and add gtrash to system packages
1 parent 28f7366 commit c922c6a

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

modules/home/core/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ in
7373
eza # ls replacement
7474
lazyjournal # journalctl viewer
7575
nmap # network scannero
76-
trashy # trash cli
7776
unrar # rar extraction
7877
unzip # zip extraction
7978
zip # zip compression

modules/home/core/fish/init.fish

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,14 @@ end
1111

1212
## Aliases and Overrides ##
1313

14-
function ls
15-
eza $argv
16-
end
17-
18-
function s
19-
ssh $argv
20-
end
21-
22-
# Copy completions
23-
complete -c ls --wraps eza
24-
complete -c s --wraps ssh
14+
abbr -a ls eza
15+
abbr -a s ssh
16+
abbr -a tt gtrash put
2517

2618
# Discourage using rm command
2719
function rm
2820
if test (count $argv) -gt 0
29-
echo "Error: 'rm' is protected. Please use 'trash' command instead."
21+
echo "Error: 'rm' is protected. Please use 'gtrash put' or 'tt' command instead."
3022
end
3123
end
3224

modules/hosts/core/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ in
3535
git
3636
git-crypt
3737
gpg-tui
38+
gtrash
3839
jq
3940
micro
4041
openssh
@@ -107,6 +108,7 @@ in
107108
auto-optimise-store = true;
108109
warn-dirty = false;
109110
allow-import-from-derivation = true;
111+
download-buffer-size = 2147483648; # 2GB
110112

111113
experimental-features = [
112114
"nix-command"

0 commit comments

Comments
 (0)