tangled
alpha
login
or
join now
seth.computer
/
dotfiles
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
zsh: using worktunk.dev in place of my wt scripts
seth.computer
5 days ago
f243447e
2db17e01
verified
This commit was signed with the committer's
known signature
.
seth.computer
SSH Key Fingerprint:
SHA256:utUtG8j2hgvZ0Rnm/rPJiqFu4NT5bjOnC26AUIBh500=
+13
-11
2 changed files
expand all
collapse all
unified
split
zsh
zshenv
zshrc
+11
-11
zsh/zshenv
···
37
37
alias wtl="git worktree list"
38
38
alias wtp="git worktree prune"
39
39
40
40
-
function wt {
41
41
-
task=${1-"task-$(date +%s)"}
42
42
-
base_branch=${2-$(git branch --show-current)}
43
43
-
repo_folder=$(basename $(pwd))
44
44
-
45
45
-
task_dir=$TASKS_DIR/$task
46
46
-
mkdir -p $task_dir
47
47
-
48
48
-
git worktree add $task_dir/$repo_folder $base_branch
49
49
-
cd $task_dir/$repo_folder
50
50
-
}
40
40
+
# function wt {
41
41
+
# task=${1-"task-$(date +%s)"}
42
42
+
# base_branch=${2-$(git branch --show-current)}
43
43
+
# repo_folder=$(basename $(pwd))
44
44
+
#
45
45
+
# task_dir=$TASKS_DIR/$task
46
46
+
# mkdir -p $task_dir
47
47
+
#
48
48
+
# git worktree add $task_dir/$repo_folder $base_branch
49
49
+
# cd $task_dir/$repo_folder
50
50
+
# }
51
51
52
52
alias lg="lazygit"
53
53
alias ld="lazydocker"
+2
zsh/zshrc
···
41
41
*) export PATH="$PNPM_HOME:$PATH" ;;
42
42
esac
43
43
# pnpm end
44
44
+
45
45
+
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi