Add .bashrc
This commit is contained in:
parent
db4b30492a
commit
c2fca72887
31
.bashrc
Normal file
31
.bashrc
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Aliases
|
||||
alias ls='ls --color=auto'
|
||||
alias less='less -R' # preserves colors in `less`
|
||||
|
||||
# Environment
|
||||
PS1='[\u@\h: \w]\$ '
|
||||
EDITOR=/usr/bin/vim
|
||||
PAGER=/usr/bin/less
|
||||
# Aggressive read/write of history after every command
|
||||
PROMPT_COMMAND='history -a; history -n'
|
||||
|
||||
# If a private bin directory exists, add it to PATH
|
||||
[[ -d ~/bin ]] && PATH="$PATH:~/bin"
|
||||
|
||||
# solarized dircolors
|
||||
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
|
||||
|
||||
# Settings
|
||||
# Don't exit when accidentally pressing ^D
|
||||
set -o ignoreeof
|
||||
|
||||
# Append, rather than overwrite history files
|
||||
# Useful for when multiple bash sessions are running
|
||||
shopt -s histappend
|
Loading…
Reference in New Issue
Block a user