From d06fbeb326fcb79a1ae26376ac8dfab12d76754d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 17 Sep 2016 01:13:57 +0300 Subject: [PATCH] .profile, .shellrc: minor refactoring --- .profile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.profile b/.profile index 8a1f152..4de74a7 100644 --- a/.profile +++ b/.profile @@ -8,8 +8,6 @@ # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. -#if test -n "$ZSH_VERSION"; then -# zsh if test -n "$BASH_VERSION"; then case "$SHELL" in */bash) ;; @@ -21,6 +19,8 @@ if test -n "$BASH_VERSION"; then # ksh93 #elif test -n "$FCEDIT"; then # ksh88 +#elif test -n "$ZSH_VERSION"; then +# zsh #elif test -n "$PS3"; then # unknown #else @@ -126,9 +126,9 @@ if [ -t 0 ] ; then export PAGER EDITOR="$HOME"/.vim/vim.sh - VISUAL="$EDITOR" FCEDIT="$EDITOR" - export EDITOR VISUAL FCEDIT + VISUAL="$EDITOR" + export EDITOR FCEDIT VISUAL HISTCONTROL=ignoreboth HISTIGNORE='&: *:x:X:[bf]g' -- 2.39.5