fix formatting

This commit is contained in:
Melvin Ragusa
2026-02-03 11:14:57 +01:00
parent 5e91500f25
commit b53c2ecaa9
10 changed files with 147 additions and 93 deletions

View File

@@ -8,7 +8,9 @@
}:
{
# Enable Fish shell
# ═══════════════════════════════════════════════════════════════
# FISH SHELL
# ═══════════════════════════════════════════════════════════════
programs.fish = {
enable = true;
@@ -33,9 +35,11 @@
set -g fish_prompt_pwd_dir_length 3
'';
# Shell aliases
# ═══════════════════════════════════════════════════════════════
# ALIASES
# ═══════════════════════════════════════════════════════════════
shellAliases = {
# Modern replacements
# ─── Modern Replacements ───
ll = "eza -la --icons --git";
ls = "eza --icons";
la = "eza -la --icons";
@@ -47,14 +51,14 @@
du = "dust";
sed = "sd";
# Docker shortcuts
# ─── Docker ───
dc = "docker compose";
dps = "docker ps";
dpa = "docker ps -a";
dl = "docker logs -f";
dex = "docker exec -it";
# Git shortcuts
# ─── Git ───
gs = "git status";
gd = "git diff";
gds = "git diff --staged";
@@ -68,7 +72,7 @@
gb = "git branch";
gst = "git stash";
# NixOS shortcuts
# ─── NixOS ───
rebuild = "sudo nixos-rebuild switch --flake .";
rebuild-boot = "sudo nixos-rebuild boot --flake .";
rebuild-test = "sudo nixos-rebuild test --flake .";
@@ -80,20 +84,23 @@
update-apps = "nix profile upgrade '.*'";
list-apps = "nix profile list";
# System
# ─── System ───
ports = "ss -tulanp";
myip = "curl -s ifconfig.me";
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../..";
# Safety
# ─── Safety ───
rm = "rm -i";
mv = "mv -i";
cp = "cp -i";
};
# Shell abbreviations (expand on space, more flexible than aliases)
# ═══════════════════════════════════════════════════════════════
# ABBREVIATIONS
# ═══════════════════════════════════════════════════════════════
# Expand on space, more flexible than aliases
shellAbbrs = {
g = "git";
d = "docker";
@@ -104,6 +111,9 @@
};
};
# ═══════════════════════════════════════════════════════════════
# PLUGINS & PACKAGES
# ═══════════════════════════════════════════════════════════════
# Fish plugins (managed by NixOS)
environment.systemPackages = with pkgs; [
# Fish plugins