From da789e2d5de7daa87535f1fb68530d9390597720 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 8 Oct 2019 11:31:31 +0200 Subject: [PATCH] [UPDATE][SHELL] Consistent style in profile I prefer using the '$(...)' sub-shell notation instead of back-ticks. I also try to systematically quote my variables if they're not numbers. --- shell/.profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/.profile b/shell/.profile index 76ff30b..17b283c 100644 --- a/shell/.profile +++ b/shell/.profile @@ -14,7 +14,7 @@ export RANGER_LOAD_DEFAULT_RC=FALSE [ -e "/etc/DIR_COLORS" ] && DIR_COLORS="/etc/DIR_COLORS" [ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors" [ -e "$DIR_COLORS" ] || DIR_COLORS="" -eval "`dircolors -b $DIR_COLORS`" +eval "$(dircolors -b $DIR_COLORS)" # Use less as my default pager export PAGER=less @@ -39,4 +39,4 @@ export BAT_PAGER="$PAGER $LESS" export PATH="$HOME/.cargo/bin:$PATH" # Use keychain to handle ssh-agent -eval $(keychain --eval id_rsa --quiet) +eval "$(keychain --eval id_rsa --quiet)"