mirror of https://tildegit.org/ben/dotfiles
tidy up some git stuff
parent
0e13329e0a
commit
61008d9492
|
@ -1 +0,0 @@
|
|||
fisher --complete
|
|
@ -2,6 +2,7 @@
|
|||
# VERSION: 3.0
|
||||
SETUVAR __fish_init_2_39_8:\x1d
|
||||
SETUVAR __fish_init_2_3_0:\x1d
|
||||
SETUVAR __fish_init_3_x:\x1d
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:\x2d\x2dbold
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
complete -c g -w git
|
||||
|
||||
function g
|
||||
if count $argv > /dev/null
|
||||
git $argv
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
function is_git
|
||||
git rev-parse --verify HEAD >/dev/null ^&1
|
||||
# keeping ^ for now for v2 backwards compatibility
|
||||
end
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@ function is_git_dirty
|
|||
|
||||
is_git; or return 1
|
||||
|
||||
if git diff-files --quiet --ignore-submodules
|
||||
and git diff-index --cached --quiet --ignore-submodules HEAD --
|
||||
if git diff-files --quiet --ignore-submodules; and git diff-index --cached --quiet --ignore-submodules HEAD --
|
||||
return 1
|
||||
else
|
||||
# we're dirty
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# Defined in /home/ben/.config/fish/functions/l.fish @ line 1
|
||||
complete -c l -w ls
|
||||
|
||||
function l
|
||||
ls -lah --group-directories-first $argv
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue