Make tmux work with claude installed via claude.com install.sh script
This commit is contained in:
parent
a69eb78f95
commit
b441c47098
1 changed files with 11 additions and 0 deletions
|
|
@ -2,6 +2,17 @@
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
|
# Run claude, naming the tmux window after it.
|
||||||
|
# The native installer's binary is named after its version (e.g. "2.1.170"),
|
||||||
|
# so tmux's automatic-rename picks that up instead of "claude".
|
||||||
|
function claude() {
|
||||||
|
if [ -n "$TMUX" ]; then
|
||||||
|
tmux rename-window claude
|
||||||
|
fi
|
||||||
|
|
||||||
|
command claude "$@"
|
||||||
|
}
|
||||||
|
|
||||||
# Delete branches selected via fzf
|
# Delete branches selected via fzf
|
||||||
function delete-branches() {
|
function delete-branches() {
|
||||||
git branch |
|
git branch |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue