Consolidate CLI tools and fix git aliases

- Consolidated 25+ common CLI tools into modules/common/base.nix
- Added modern rust-based tools (eza, bat, ripgrep, etc.) system-wide
- Removed duplicated packages from user and machine configs
- Added consistent shell aliases for modern CLI tools
- Fixed gpa alias to properly push to all remotes
- Removed duplicate git-push-all alias from geir.nix
- Added comprehensive documentation in CLI_TOOLS_CONSOLIDATION.md

Benefits:
- Single source of truth for common CLI tools
- Reduced duplication across 7+ configuration files
- Improved git workflow with flexible multi-remote pushing
- Better maintainability and consistency
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-08 09:28:10 +00:00
parent 73c3ac9386
commit 8884c42cf2
8 changed files with 188 additions and 85 deletions

View file

@ -25,23 +25,14 @@
# Common aliases for all users
shellAliases = {
# Modern CLI tool replacements
"ls" = "eza --color=auto --group-directories-first";
# Modern CLI tool replacements (basic ones moved to base.nix)
"ll" = "eza -l --color=auto --group-directories-first";
"la" = "eza -la --color=auto --group-directories-first";
"tree" = "eza --tree";
# Git shortcuts
"gs" = "git status";
"ga" = "git add";
"gc" = "git commit";
"gp" = "git push";
"gl" = "git log --oneline -10";
# Git shortcuts (basic ones moved to base.nix)
# System shortcuts
"grep" = "rg";
"find" = "fd";
"cat" = "bat";
# System shortcuts (some moved to base.nix)
"top" = "btop";
# Network
@ -64,21 +55,14 @@
# Common packages for all users
environment.systemPackages = with pkgs; [
# Essential CLI tools (already configured in base.nix)
# Essential CLI tools moved to base.nix
# Adding user-specific tools here
# Communication
firefox
# Development (basic)
git
curl
wget
# Utilities
file
unzip
zip
# Development (basic tools moved to base.nix)
# Additional utilities not in base.nix
];
# Common security settings