Use pure theme for #fishshell
This commit is contained in:
5
fish/.config/fish/functions/git_is_repo.fish
Normal file
5
fish/.config/fish/functions/git_is_repo.fish
Normal file
@ -0,0 +1,5 @@
|
||||
function git_is_repo -d "Test if the current directory is a Git repository"
|
||||
if not command git rev-parse --git-dir > /dev/null 2>/dev/null
|
||||
return 1
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user