addet tmux-function

This commit is contained in:
pika 2024-05-22 20:18:24 +02:00
parent e312eddf84
commit f67fa90399
3 changed files with 13 additions and 1 deletions

View file

@ -163,7 +163,7 @@ if command -v git >/dev/null 2>&1
alias gc='git clone --recurse-submodule' alias gc='git clone --recurse-submodule'
alias ga='git add' alias ga='git add'
alias gp='git pull --recurse-submodule' alias gp='git pull --recurse-submodule'
alias gsu='git submodule foreach git pull && git add . && git commit -m " updated 📌submodules" && echo "-- Committed changes, pushing now.." && sleep 1.5 && git push' alias gsu='git submodule foreach git pull && git add . && git commit -m " updated 📌submodules" && echo "-- Committed changes, pushing now.." && sleep 1 && git push'
alias gcm='git commit -m' alias gcm='git commit -m'
alias gpu='git push --recurse-submodule=on-demand' alias gpu='git push --recurse-submodule=on-demand'
end end

View file

@ -1,3 +1,6 @@
# ╭────────────────────────────────────────────────────────────────────────────────────────────╮
# │ Define function gsa (to ask the user which submodule to clone to which path and which name │
# ╰────────────────────────────────────────────────────────────────────────────────────────────╯
function gsa function gsa
# ─< Prompt the user to enter the repository URL to add as a submodule >──────────────────── # ─< Prompt the user to enter the repository URL to add as a submodule >────────────────────
echo "-- enter the repository to add as a submodule --" echo "-- enter the repository to add as a submodule --"

9
functions/tmux.fish Normal file
View file

@ -0,0 +1,9 @@
if command -v tmux 2>&1
function ta
if command tmux list-sessions 2>&1
tmux a
else
tmux
end
end
end