Add a linux installer
This commit is contained in:
51
bash/bashrc
51
bash/bashrc
@@ -1,22 +1,15 @@
|
||||
#set -x # Print out all of the commands that are executing.
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# Unbreak broken, non-colored terminal
|
||||
export TERM=xterm-256color
|
||||
|
||||
test -f ~/.common_env && . ~/.common_env
|
||||
test -f ~/.private-dotfiles.common/env && . ~/.private-dotfiles.common/env
|
||||
test -f ~/.private-dotfiles/env && . ~/.private-dotfiles/env
|
||||
|
||||
test -f ~/.aliases && . ~/.aliases
|
||||
test -f ~/.aliases.private && . ~/.aliases.private
|
||||
|
||||
if [[ -d "$HOME/bin" ]]; then
|
||||
export PATH=$HOME/bin/:$PATH
|
||||
fi
|
||||
|
||||
if [[ -d "$HOME/.dotfiles/bin" ]]; then
|
||||
export PATH=$HOME/.dotfiles/bin/:$PATH
|
||||
fi
|
||||
test -f ~/.env.common && . ~/.env.common
|
||||
|
||||
# TMP and TEMP are defined in the Windows environment. Leaving them set to the default
|
||||
# Windows temporary directory can have unexpected consequences.
|
||||
@@ -64,6 +57,8 @@ export NVM_DIR="$HOME/.nvm"
|
||||
# Don't use ^D to exit
|
||||
set -o ignoreeof
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
@@ -71,9 +66,10 @@ 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=2000
|
||||
HISTSIZE=20000
|
||||
HISTFILESIZE=20000
|
||||
HISTIGNORE="&:ls:l:ll:[bf]g:less:clear:cls:exit:history:hist"
|
||||
HISTTIMEFORMAT='%F %T '
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
@@ -82,5 +78,26 @@ shopt -s checkwinsize
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# colored GCC warnings and errors
|
||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user