addet tmux-function
This commit is contained in:
parent
e312eddf84
commit
f67fa90399
3 changed files with 13 additions and 1 deletions
|
@ -163,7 +163,7 @@ if command -v git >/dev/null 2>&1
|
|||
alias gc='git clone --recurse-submodule'
|
||||
alias ga='git add'
|
||||
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 gpu='git push --recurse-submodule=on-demand'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# ╭────────────────────────────────────────────────────────────────────────────────────────────╮
|
||||
# │ Define function gsa (to ask the user which submodule to clone to which path and which name │
|
||||
# ╰────────────────────────────────────────────────────────────────────────────────────────────╯
|
||||
function gsa
|
||||
# ─< Prompt the user to enter the repository URL to add as a submodule >────────────────────
|
||||
echo "-- enter the repository to add as a submodule --"
|
||||
|
|
9
functions/tmux.fish
Normal file
9
functions/tmux.fish
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue