mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix!: refactored homeModules
This commit is contained in:
parent
1c48edddf4
commit
e9f8ccd2b3
50 changed files with 14 additions and 41 deletions
16
nix/homeModules/common/fish/functions/tmux_last.fish
Normal file
16
nix/homeModules/common/fish/functions/tmux_last.fish
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function tmux_last \
|
||||
--description "Toggle the last tmux session"
|
||||
|
||||
set tmux_last /tmp/TMUX_LAST
|
||||
if [ ! -f $tmux_last ]
|
||||
echo "Last session is not yet set"
|
||||
return 1
|
||||
end
|
||||
|
||||
set session_name (cat $tmux_last)
|
||||
|
||||
__tmux_register_session
|
||||
__tmux_maybe_create $session_name /tmp
|
||||
__tmux_attach_or_switch $session_name
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue