Staship for shell consistency; move git aliases into git program
This commit is contained in:
parent
0840692186
commit
d1b9f3defe
3 changed files with 61 additions and 2 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue