From c17705354c304508743e244688cbb237bfa7e78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 1 Aug 2022 21:32:44 -0300 Subject: [PATCH] add shell abbrs --- user/home.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/user/home.nix b/user/home.nix index d84a80e..8f475b8 100644 --- a/user/home.nix +++ b/user/home.nix @@ -219,6 +219,26 @@ in { set -g __accent_color "${accent.color}" alias _fish_prompt_accent "_fish_prompt_color '$__accent_color'" ''; + shellAbbrs = { + sv = "sudo systemct"; + suv = "sudo systemct --user"; + # git abbrs + g = "git"; + ga = "git add"; + gs = "git status"; + gsh = "git show"; + gl = "git log"; + gg = "git graph"; + gd = "git diff"; + gds = "git diff --staged"; + gc = "git commit"; + gca = "git commit --all"; + gcf = "git commit --fixup"; + gp = "git push -u origin (git branch --show-current)"; + gw = "git switch"; + gr = "cd (git root)"; + gri = "git rebase --interactive FETCH_HEAD"; + }; }; home.file = { # ".config/sway/config".source = ./sway;