Only host uses flatpak of NeoVim

This commit is contained in:
John Mertz 2023-05-09 15:29:44 -04:00
parent 46827f6740
commit 32c73963b2
3 changed files with 6 additions and 3 deletions

View File

@ -16,9 +16,6 @@ if [ "$(tty)" == '/dev/tty1' ] && [ ! "$SSH_TTY" ]; then
fi
fi
# Setup editor
export EDITOR="flatpak run io.neovim.nvim"
# don't put duplicate lines or lines starting with space in the history.
shopt -s histappend
HISTCONTROL=ignoreboth

View File

@ -1,5 +1,8 @@
# vim: ft=sh
# Setup editor
export EDITOR="nvim"
export DISTROBOX=$(grep -oP "(?<=name=\")[^\";]+" /run/.containerenv)
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
HISTFILE="${HISTFILE}.$DISTROBOX"

View File

@ -1,5 +1,8 @@
# vim: ft=sh
# Setup editor
export EDITOR="flatpak run io.neovim.nvim"
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
if [ -z "$SSH_AGENT_PID" ]; then
if [ -f "$HOME/.spool/ssh-agent.env" ]; then