nvim distrobox -> nix

This commit is contained in:
John Mertz 2023-07-20 15:54:00 -04:00
parent 914a95d622
commit 2646902a26
3 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# vim: ft=sh # vim: ft=sh
# Setup editor
export EDITOR="${HOME}/.dotfiles/nix/bin/nvim"
# If not running interactively, don't do anything # If not running interactively, don't do anything
case $- in case $- in
*i*) ;; *i*) ;;

View File

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

View File

@ -1,8 +1,5 @@
# vim: ft=sh # vim: ft=sh
# Setup editor
export EDITOR="flatpak run io.neovim.nvim"
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock" export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
echo "This is the host OS. You probably want to open a Distrobox." echo "This is the host OS. You probably want to open a Distrobox."