added script to open nvim config in nvim
This commit is contained in:
11
.local/bin/nvimcfg
Executable file
11
.local/bin/nvimcfg
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
NVIM_CONFIG="$HOME/.config/nvim"
|
||||
PROJECT_NAME="NVIM-Config"
|
||||
tmux has-session -t $PROJECT_NAME &> /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
cd "$NVIM_CONFIG"
|
||||
tmux new -session -s $PROJECT_NAME -n nvim -d
|
||||
tmux send-keys -t $PROJECT_NAME "nvim ." C-m
|
||||
fi
|
||||
tmux attach -t $PROJECT_NAME
|
||||
Reference in New Issue
Block a user