From a58f87311474b3d724768852f158be24ef63119f Mon Sep 17 00:00:00 2001 From: Holger Just Date: Mon, 6 Aug 2018 20:05:39 +0200 Subject: [PATCH] Use atom instead of subl as the default editor --- .bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d7e689e..0037530 100644 --- a/.bashrc +++ b/.bashrc @@ -78,7 +78,11 @@ case `uname` in export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home" export EDITOR="vim" - export BACKGROUND_EDITOR="subl -n" + if type atom >/dev/null 2>&1; then + export BACKGROUND_EDITOR="atom" + else + export BACKGROUND_EDITOR="subl -n" + fi export SVN_EDITOR="$EDITOR" alias ls='ls -G'