Staship for shell consistency; move git aliases into git program

This commit is contained in:
Haak Saxberg 2023-11-17 14:38:32 -08:00
parent 0840692186
commit d1b9f3defe
3 changed files with 61 additions and 2 deletions

View file

@ -32,4 +32,22 @@ in
".DS_Store"
];
};
programs.nushell.shellAliases = {
gst = "git status";
gco = "git checkout";
gf = "git fetch";
gl = "git pull";
};
programs.nushell.extraConfig = ''
def glog [] { ^git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD -n 25 | lines | split column "»¦«" commit subject name email date | upsert date {|d| $d.date | into datetime} | sort-by date | reverse | explore }
'';
programs.zsh.shellAliases = {
gst = "git status";
glog = "git log --oneline --graph --decorate";
gco = "git checkout";
gf = "git fetch";
gl = "git pull";
};
}