Updates package management and protects rm
- Removes redundant packages from core settings - Adds trash CLI and a safety wrapper for rm - Reassigns curl to system packages and omits plocate
This commit is contained in:
parent
33a1b912ec
commit
a150b793b0
3 changed files with 10 additions and 5 deletions
|
@ -69,16 +69,14 @@
|
||||||
# Packages that don't have custom configs go here
|
# Packages that don't have custom configs go here
|
||||||
btop # resource monitor
|
btop # resource monitor
|
||||||
coreutils # basic gnu utils
|
coreutils # basic gnu utils
|
||||||
curl
|
|
||||||
dua # disk usage analyzer
|
|
||||||
dust # disk usage
|
dust # disk usage
|
||||||
eza # ls replacement
|
eza # ls replacement
|
||||||
jq
|
jq # json parser
|
||||||
p7zip # compression & encryption
|
p7zip # compression & encryption
|
||||||
pre-commit # git hooks
|
pre-commit # git hooks
|
||||||
|
trashy # trash cli
|
||||||
unrar # rar extraction
|
unrar # rar extraction
|
||||||
unzip # zip extraction
|
unzip # zip extraction
|
||||||
wget # downloader
|
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
xdg-utils # provide cli tools such as `xdg-mime` and `xdg-open`
|
xdg-utils # provide cli tools such as `xdg-mime` and `xdg-open`
|
||||||
zip # zip compression
|
zip # zip compression
|
||||||
|
|
|
@ -26,6 +26,13 @@ function rebuild
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Discourage using rm command
|
||||||
|
function rm
|
||||||
|
if test (count $argv) -gt 0
|
||||||
|
echo "Error: 'rm' is protected. Please use 'trashy' command instead."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# SSH function, just for convenience since I use it a lot
|
# SSH function, just for convenience since I use it a lot
|
||||||
function s
|
function s
|
||||||
set user (whoami)
|
set user (whoami)
|
||||||
|
|
|
@ -23,9 +23,9 @@ in
|
||||||
|
|
||||||
# System-wide packages, in case we log in as root
|
# System-wide packages, in case we log in as root
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
curl
|
||||||
micro
|
micro
|
||||||
openssh
|
openssh
|
||||||
plocate
|
|
||||||
ranger
|
ranger
|
||||||
sshfs
|
sshfs
|
||||||
wget
|
wget
|
||||||
|
|
Loading…
Add table
Reference in a new issue