From 534752ffa456c0bc968b6336c9aafc3372b98d60 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 15 Sep 2013 01:53:03 +1200 Subject: Break editor/pager setup into subfile --- .gitignore | 2 ++ sh/profile | 9 --------- sh/profile.d/editor.sh | 5 +++++ sh/profile.d/pager.sh | 4 ++++ 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 sh/profile.d/editor.sh create mode 100644 sh/profile.d/pager.sh diff --git a/.gitignore b/.gitignore index 8c3b89d7..4db0ecd6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,10 @@ mutt/signature.* newsbeuter/urls sh/profile.d/* !sh/profile.d/browser.sh +!sh/profile.d/editor.sh !sh/profile.d/keychain.sh !sh/profile.d/openbsd.sh +!sh/profile.d/pager.sh !sh/profile.d/timezone.sh urxvt/urxvtd-* vim/.netrwhist diff --git a/sh/profile b/sh/profile index cfa8cf22..7e1f88c2 100644 --- a/sh/profile +++ b/sh/profile @@ -1,12 +1,3 @@ -# Set editor -EDITOR='vi' -VISUAL=$EDITOR -export EDITOR VISUAL - -# Set pager -PAGER='less' -export PAGER - # Add ~/.local/bin to PATH if it exists if [ -d "$HOME"/.local/bin ]; then PATH="$HOME"/.local/bin:"$PATH" diff --git a/sh/profile.d/editor.sh b/sh/profile.d/editor.sh new file mode 100644 index 00000000..eaebf3bd --- /dev/null +++ b/sh/profile.d/editor.sh @@ -0,0 +1,5 @@ +# Set editor +EDITOR='vi' +VISUAL=$EDITOR +export EDITOR VISUAL + diff --git a/sh/profile.d/pager.sh b/sh/profile.d/pager.sh new file mode 100644 index 00000000..7e55a1a9 --- /dev/null +++ b/sh/profile.d/pager.sh @@ -0,0 +1,4 @@ +# Set pager +PAGER='less' +export PAGER + -- cgit v1.2.3