File tree 1 file changed +13
-12
lines changed 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 22
22
echo " tmux already installed!"
23
23
fi
24
24
25
+ # Clone Neovim configuration
26
+ git clone --depth 1 https://github.com/daliendev/astro-nvim/ " $HOME /.config/nvim"
27
+
25
28
# Auto start tmux on SSH or xtermjs
26
29
cat >> " $HOME /.bashrc" << 'EOF '
27
- if test ! -v TMUX && (test -v SSH_CONNECTION || test "$PPID" == "$(pgrep -f '/ide/xterm/bin/node /ide/xterm/index.cjs' | head -n1)"); then {
28
- if ! tmux has-session 2>/dev/null; then {
29
- tmux new-session -n "editor" -ds "gitpod"
30
- } fi
31
- exec tmux attach
32
- } fi
30
+ if test ! -v TMUX && (test -v SSH_CONNECTION || test "$PPID" == "$(pgrep -f '/ide/xterm/bin/node /ide/xterm/index.cjs' | head -n1)"); then
31
+ if ! tmux has-session 2>/dev/null; then
32
+ # Create a new detached tmux session named "gitpod"
33
+ tmux new-session -d -s gitpod -n "editor"
34
+ # Send the Neovim command to the session, it will install necessary LSP and plugins
35
+ tmux send-keys -t gitpod "nvim --headless '+Lazy! sync' +qall" C-m
36
+ fi
37
+ exec tmux attach
38
+ fi
33
39
EOF
34
40
41
+ # Download Gitpod Tmux Configuration
35
42
curl -L " https://raw.githubusercontent.com/axonasif/gitpod.tmux/main/gitpod.tmux" --output ~ /gitpod.tmux
36
43
chmod +x ~ /gitpod.tmux
37
44
! grep -q ' gitpod.tmux' ~ /.tmux.conf 2> /dev/null && echo " run-shell -b 'exec ~/gitpod.tmux'" >> ~/.tmux.conf
45
52
46
53
# Set Nerd Font in .tmux.conf
47
54
! grep -q ' Nerd Font' ~ /.tmux.conf 2> /dev/null && echo " set-option -g default-terminal 'xterm-256color'" >> ~/.tmux.conf
48
-
49
- # Clone Neovim configuration
50
- git clone --depth 1 https://github.com/daliendev/astro-nvim/ " $HOME /.config/nvim"
51
-
52
- # Install necessary LSP and plugins
53
- nvim --headless " +Lazy! sync" +qall
You can’t perform that action at this time.
0 commit comments