dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9979311e978da610c4c3ebf82a980f0767c8d4ef
parent 2142e26850dd2f9a92c01dfa48b43a760cbaddc2
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 14 Jan 2020 11:50:20 +0100

Make $EDITOR and $PAGER settings more robust

Get the path of vim dynamically, and switch between bat and less
depending on which is installed.


Former-commit-id: 4e971b7592f500490b217818b202b76beaa4b99c
Diffstat:
Mshell/profile | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/shell/profile b/shell/profile @@ -46,6 +46,10 @@ if [ -d "/usr/local/sbin" ]; then fi export DOTFILES="$HOME/.dotfiles" -export EDITOR="/usr/local/bin/vim" +export EDITOR="`which vim`" export MUSIC_DIR="/Volumes/HDD/Music/iTunes/iTunes Media/Music" -export PAGER="bat" +if command -v bat &> /dev/null; then + export PAGER="bat" +else + export PAGER="less -R" +fi