commit 897fb670060f57f30271d8367f6e43f633b05291
parent a862dd3c76408a16cff79876b7d63b75fae8a91c
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Tue, 23 Jun 2020 19:59:29 +0200

Drop atom command from website script

Diffstat:
M.local/bin/,website | 14+++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/.local/bin/,website b/.local/bin/,website @@ -5,16 +5,8 @@ SESSION=$USER # New tmux session tmux -2 new-session -d -s "$SESSION" -# New window called Hugo running 'hugo server' in website folder -tmux new-window -t "$SESSION:1" -n 'hugo' -tmux send-keys "cd ~/Git/oscarbenedito.com" C-m -tmux send-keys "hugo server" C-m - -# Back to window #0, open file with atom, run local server and open it on firefox +# New window called Hugo running "hugo server" in website folder tmux select-window -t "$SESSION:0" -tmux send-keys "cd ~/Git/oscarbenedito.com" C-m -tmux send-keys "atom . &" C-m tmux send-keys "firefox http://localhost:1313/ &" C-m - -# Attach session -tmux -2 attach-session -t "$SESSION" +tmux send-keys "cd $HOME/Git/oscarbenedito.com" C-m +tmux send-keys "hugo server" C-m