summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc37
1 files changed, 27 insertions, 10 deletions
diff --git a/bashrc b/bashrc
index 5e186cf..6c7c0d5 100644
--- a/bashrc
+++ b/bashrc
@@ -9,10 +9,10 @@
#esac
# Use vi if not vim
-case "$(command -v vim)" in
- */vim) VIM=vim ;;
- *) VIM=vi ;;
-esac
+#case "$(command -v vim)" in
+# */vim) VIM=vim ;;
+# *) VIM=vi ;;
+#esac
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
@@ -26,14 +26,32 @@ fi
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
-HISTCONTROL=ignoreboth
+export HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
-HISTSIZE=1000
-HISTFILESIZE=20000
+export HISTSIZE=10000
+export HISTFILESIZE=20000
+export HISTTIMEFORMAT='[%F_%X]: '
+export TIMEFORMAT='%3R'
+export LS_COLORS='fi=37:di=1;97:ln=90:mh=90:ex=3;2;37:no=1;97:mi=90:ow=91'
+export GREP_COLOR='1;91'
+export LESSSECURE=1
+export SUDO_EDITOR='/usr/local/bin/rvim'
+
+#set TERM
+export TERM="xterm-256color"
+
+# Pretty-print man(1) pages, which doesn't do anything
+export LESS_TERMCAP_mb=$'\E[1;91m'
+export LESS_TERMCAP_md=$'\E[1;91m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_so=$'\E[1;93m'
+export LESS_TERMCAP_se=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[1;92m'
# use colorls if it's installed, plain old ls otherwise
alias ls='colorls -G'
@@ -114,9 +132,8 @@ export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND
export FZF_ALT_C_COMMAND=$FZF_DEFAULT_COMMAND
export FZF_DEFAULT_OPTS='--color info:108,prompt:109,spinner:108,pointer:168,marker:168'
-#set TERM
-export TERM="xterm-256color"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
-EDITOR=/usr/local/bin/vim
+export EDITOR=/usr/local/bin/vim
+source ~/perl5/perlbrew/etc/bashrc