From 537560f92c8de32f9eb1cec1f15115aca1776725 Mon Sep 17 00:00:00 2001 From: RootHost-Stormwind Date: Mon, 13 Jan 2025 01:24:42 +0100 Subject: [PATCH] add shell aliases --- configuration.nix => master.nix | 0 user/stormwind/fish.nix | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) rename configuration.nix => master.nix (100%) diff --git a/configuration.nix b/master.nix similarity index 100% rename from configuration.nix rename to master.nix diff --git a/user/stormwind/fish.nix b/user/stormwind/fish.nix index b443192..2bf904c 100644 --- a/user/stormwind/fish.nix +++ b/user/stormwind/fish.nix @@ -9,6 +9,22 @@ fish_vi_key_bindings # Vi bindings ''; + shellAliases = { + ll = "ls -l"; + nix-update = "sudo nixos-rebuild switch -I nixos-config=/etc/nixos/master.nix"; + gda = "git add --all"; + gst = "git status"; + gcm = "git commit -m"; + gush = "git push"; + gull = "git pull"; + glone = "git clone"; + giff = "git diff"; + gog = "git log"; + open = "xdg-open"; + vim = "nvim"; + vi = "nvim"; + }; + plugins = [ # Enable a plugin (here grc for colorized command output) from nixpkgs { name = "grc"; src = pkgs.fishPlugins.grc.src; }