mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
fish: insert project name in path for l2wt
This commit is contained in:
parent
dae28e7a69
commit
5ff891cb25
2 changed files with 4 additions and 2 deletions
|
|
@ -5,7 +5,9 @@ function l2wt \
|
|||
echo "Path needed"
|
||||
end
|
||||
|
||||
git worktree add "$WORKTREE_PATH/$argv[1]" $argv[2..]
|
||||
set project_name (basename (git rev-parse --show-toplevel))
|
||||
|
||||
git worktree add "$WORKTREE_PATH/$project_name/$argv[1]" $argv[2..]
|
||||
end
|
||||
|
||||
complete l2wt --no-files -a "(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue