Compare commits
No commits in common. "9adae124ebdd4c08cab42705cf9e3b844c1825e2" and "c8dab4b3f423a3a1690040339c69bd165de0f20f" have entirely different histories.
9adae124eb
...
c8dab4b3f4
|
|
@ -1,8 +1,6 @@
|
|||
export EDITOR=$HOME/.local/bin/nvim.appimage
|
||||
export TERMINAL=st
|
||||
export SHELL=/usr/bin/tmux
|
||||
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export TERMINAL=gnome-terminal
|
||||
export SHELL=/usr/bin/bash
|
||||
|
||||
alias vi="$EDITOR"
|
||||
alias wakeup="wakeonlan -i 192.168.1.50 58:11:22:C9:D5:B9"
|
||||
|
|
@ -59,22 +57,3 @@ reboot_to_windows ()
|
|||
sudo grub-reboot "$windows_title" && sudo reboot
|
||||
}
|
||||
alias windows='reboot_to_windows'
|
||||
|
||||
|
||||
session_name="gil"
|
||||
|
||||
# 1. First you check if a tmux session exists with a given name.
|
||||
tmux has-session -t=$session_name 2> /dev/null
|
||||
|
||||
# 2. Create the session if it doesn't exists.
|
||||
if [[ $? -ne 0 ]]; then
|
||||
TMUX='' tmux new-session -d -s "$session_name"
|
||||
fi
|
||||
|
||||
# 3. Attach if outside of tmux, switch if you're in tmux.
|
||||
if [[ -z "$TMUX" ]]; then
|
||||
tmux attach -t "$session_name"
|
||||
else
|
||||
tmux switch-client -t "$session_name"
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
~/.local/bin/nvim.appimage
|
||||
Loading…
Reference in New Issue