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
|
||||
btop # resource monitor
|
||||
coreutils # basic gnu utils
|
||||
curl
|
||||
dua # disk usage analyzer
|
||||
dust # disk usage
|
||||
eza # ls replacement
|
||||
jq
|
||||
jq # json parser
|
||||
p7zip # compression & encryption
|
||||
pre-commit # git hooks
|
||||
trashy # trash cli
|
||||
unrar # rar extraction
|
||||
unzip # zip extraction
|
||||
wget # downloader
|
||||
xdg-user-dirs
|
||||
xdg-utils # provide cli tools such as `xdg-mime` and `xdg-open`
|
||||
zip # zip compression
|
||||
|
|
|
@ -26,6 +26,13 @@ function rebuild
|
|||
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
|
||||
function s
|
||||
set user (whoami)
|
||||
|
|
|
@ -23,9 +23,9 @@ in
|
|||
|
||||
# System-wide packages, in case we log in as root
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
micro
|
||||
openssh
|
||||
plocate
|
||||
ranger
|
||||
sshfs
|
||||
wget
|
||||
|
|
Loading…
Add table
Reference in a new issue