set EDITOR for dev-server

Signed-off-by: Michael Grote <michael.grote@dataport.de>
This commit is contained in:
Michael Grote 2024-08-05 12:04:07 +02:00
parent 78109b3894
commit e9a3bf7d8c

View file

@ -22,6 +22,9 @@ if [[ $- == *i* ]] ; then
### keychain
export GPG_TTY=$(tty)
fi
if [ "$(hostname -s)" == "lzeorpt001" ] ; then
export EDITOR="/usr/bin/vim"
fi
### tmux auto attach
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default