some changes
This commit is contained in:
parent
3e72426264
commit
d9ca8858cb
2 changed files with 10 additions and 13 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,3 +2,6 @@ dotfiles/.config/rofi/pywal-color/pywal-theme.rasi
|
||||||
completions/fisher.fish
|
completions/fisher.fish
|
||||||
functions/fisher.fish
|
functions/fisher.fish
|
||||||
fisher.fish
|
fisher.fish
|
||||||
|
conf.d/
|
||||||
|
fish_plugins
|
||||||
|
completions/
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
if command -v tmux /dev/null 2>&1
|
[38;2;249;38;114mfunction[0m[38;2;255;255;255m [0m[38;2;166;226;46mta[0m
|
||||||
function ta
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mcommand[0m[38;2;255;255;255m [0m[38;2;253;151;31m-[0m[38;2;253;151;31mv[0m[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m[38;2;255;255;255m [0m[38;2;255;255;255mlist-sessions[0m[38;2;255;255;255m [0m[38;2;255;255;255m/dev/null[0m[38;2;255;255;255m [0m[38;2;190;132;255m2[0m[38;2;249;38;114m>[0m[38;2;249;38;114m&[0m[38;2;190;132;255m1[0m
|
||||||
command tmux list-sessions /dev/null 2>&1
|
[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m[38;2;255;255;255m [0m[38;2;255;255;255ma[0m
|
||||||
switch $status
|
[38;2;255;255;255m [0m[38;2;249;38;114melse[0m
|
||||||
case '0'
|
[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m
|
||||||
tmux a
|
[38;2;255;255;255m [0m[38;2;249;38;114mend[0m
|
||||||
case '*'
|
[38;2;249;38;114mend[0m
|
||||||
echo "-- there are no tmux sessions | creating one now.. "
|
|
||||||
sleep 0.7
|
|
||||||
tmux
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue