mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
fish: rename repo path variables
This commit is contained in:
parent
acfc46aeb5
commit
d49561657e
7 changed files with 19 additions and 22 deletions
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
home = {
|
||||
sessionVariables = lib.mapAttrs (_: path: "${config.home.homeDirectory}/${path}") {
|
||||
REPOS_PATH = "repos";
|
||||
UNIV_REPOS_PATH = "univ-repos";
|
||||
REPO_PATH = "repo";
|
||||
UNIV_REPO_PATH = "univ-repo";
|
||||
PLAYGROUND_PATH = "playground";
|
||||
WORKTREE_PATH = "worktree";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function clone_to_repos
|
|||
set name_repo (echo $argv | sed -E 's/.*[:\\/]([^\\/]+)\\/([^\\/]+?)(:?\\.git)$/\1 \2/')
|
||||
set name (echo $name_repo | cut -d ' ' -f1)
|
||||
set repo (echo $name_repo | cut -d ' ' -f2)
|
||||
mkdir -p $REPOS_PATH/$name
|
||||
git clone $argv $REPOS_PATH/$name/$repo
|
||||
mkdir -p $REPO_PATH/$name
|
||||
git clone $argv $REPO_PATH/$name/$repo
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ function tmux_sessionizer \
|
|||
|
||||
set selected \
|
||||
(begin
|
||||
fd . $REPOS_PATH $UNIV_REPOS_PATH --exact-depth 2 --type d
|
||||
fd . $REPO_PATH $UNIV_REPO_PATH --exact-depth 2 --type d
|
||||
fd . $WORKTREE_PATH --exact-depth 1 --type d
|
||||
fd . $PLAYGROUND_PATH --exact-depth 1 --type d
|
||||
# Special mode to create a playground
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue