From 759ae7724f30871a5c68c00fab19b0e45551ffec Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 12 Feb 2020 12:16:33 +0000 Subject: [PATCH] Set EDITOR to Sublime Text if it is installed --- roles/home-cli/files/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 2f32faf..6f3f0b9 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -224,6 +224,10 @@ if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ]; then alias dnf='yum' fi +if test -n "$DISPLAY" && test -x /usr/bin/subl; then + export EDITOR="/usr/bin/subl -nw" +fi + if [ -x /usr/bin/svnlite ] && [ ! -x /usr/local/bin/svn ]; then alias svn='svnlite' alias svnadmin='svnliteadmin'