forked from puneetpruthi/dev-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
31 lines (22 loc) · 753 Bytes
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Set Alias
alias vi=vim
# Limit the path length shown on prompt
PROMPT_DIRTRIM=4
# Prompt formatting (with color)
# Currently, the prompt looks like:
# [username@hostname $PWD]
typeset +x PS1="[\[\e[0;31m\]\u\[\e[m\]@\[\e[0;32m\]\h\[\e[m\]\[\e[0;34m\] \w\[\e[00m\]]$ "
# old prompt formatting
# PS1="${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\h\[\033[00m\] \[\033[00;36m\]\w\[\033[00m\] \$ "
# Set title
set XTERM_TITLE='\[\e]0;\W@\u@\H\a\]'
# Setting environment
export HISTCONTROL=ignoreboth
export HISTSIZE=10000
#export PROMPT_COMMAND="history -a"
# Dunno why I had this. Commenting it for the moment
#printf "\033]0;`uname -n`\007"
# Set xterm title
PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}\007"'
umask 0022
EDITOR=vim