switch to chezmoi
This commit is contained in:
parent
3c5d00dbf3
commit
a8b0acd4db
76 changed files with 27 additions and 531 deletions
6
dot_config/private_fish/functions/groot.fish
Normal file
6
dot_config/private_fish/functions/groot.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
function groot
|
||||
set -l is_git_worktree (command git rev-parse --is-inside-work-tree)
|
||||
string match -qe 'true' "$is_git_worktree" || return
|
||||
set -l root (command git rev-parse --show-toplevel)
|
||||
test $status -eq 0 && cd $root
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue