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
|
# VERSION: 3.0
|
||||||
SETUVAR __fish_init_2_39_8:\x1d
|
SETUVAR __fish_init_2_39_8:\x1d
|
||||||
SETUVAR __fish_init_2_3_0:\x1d
|
SETUVAR __fish_init_2_3_0:\x1d
|
||||||
|
SETUVAR __fish_init_3_x:\x1d
|
||||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
SETUVAR fish_color_command:\x2d\x2dbold
|
SETUVAR fish_color_command:\x2d\x2dbold
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
complete -c g -w git
|
||||||
|
|
||||||
function g
|
function g
|
||||||
if count $argv > /dev/null
|
if count $argv > /dev/null
|
||||||
git $argv
|
git $argv
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
function is_git
|
function is_git
|
||||||
git rev-parse --verify HEAD >/dev/null ^&1
|
git rev-parse --verify HEAD >/dev/null ^&1
|
||||||
|
# keeping ^ for now for v2 backwards compatibility
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
function is_git_dirty
|
function is_git_dirty
|
||||||
# based on https://github.com/git/git/blob/master/git-sh-setup.sh#L210
|
# based on https://github.com/git/git/blob/master/git-sh-setup.sh#L210
|
||||||
|
|
||||||
is_git; or return 1
|
is_git; or return 1
|
||||||
|
|
||||||
if git diff-files --quiet --ignore-submodules
|
if git diff-files --quiet --ignore-submodules; and git diff-index --cached --quiet --ignore-submodules HEAD --
|
||||||
and git diff-index --cached --quiet --ignore-submodules HEAD --
|
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
# we're dirty
|
# 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
|
function l
|
||||||
ls -lah --group-directories-first $argv
|
ls -lah --group-directories-first $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue