Use .dotfiles version of nvim automatically. Enable tmux
This commit is contained in:
@@ -118,16 +118,21 @@ fi
|
|||||||
|
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
if [ -r "$HOME/.dotfiles/nvim-linux-`uname -m`/bin/nvim" ]
|
||||||
# exec tmux
|
then
|
||||||
#fi
|
(
|
||||||
|
cd $HOME/.dotfiles/nvim-linux-`uname -m`/bin
|
||||||
# tmux attach-session -t default || tmux new-session -s default
|
test -x vi || ln -s nvim vi
|
||||||
|
)
|
||||||
|
PATH="$HOME/.dotfiles/nvim-linux-`uname -m`/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
export MANPAGER='nvim +Man!'
|
export MANPAGER='nvim +Man!'
|
||||||
|
|
||||||
if command -v tmux>/dev/null; then
|
test -r $HOME/.bashrc-local && . $HOME/.bashrc-local
|
||||||
[ -z "$TMUX" ] && tmux new-session -A -s default
|
|
||||||
|
if [ -z "$TMUX" ]
|
||||||
|
then
|
||||||
|
tmux attach-session -t default || tmux new-session -s default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test -r $HOME/.bashrc-local && . $HOME/.bashrc-local
|
|
||||||
|
|||||||
Reference in New Issue
Block a user