init .config git tracking
This commit is contained in:
commit
114c330966
151 changed files with 4688 additions and 0 deletions
6
config/fish/functions/__git.current_branch.fish
Normal file
6
config/fish/functions/__git.current_branch.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function __git.current_branch -d "Output git's current branch name"
|
||||
begin
|
||||
git symbolic-ref HEAD; or \
|
||||
git rev-parse --short HEAD; or return
|
||||
end 2>/dev/null | sed -e 's|^refs/heads/||'
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue