-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
67 lines (50 loc) · 1.67 KB
/
Copy pathbashrc
File metadata and controls
67 lines (50 loc) · 1.67 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# ~/.bashrc: Dov Salomon <me@dov.ms>
#
# exit if not interactive
case $- in
*i*) ;;
*) return;;
esac
[ -f ~/.config/bash/aliases ] && source ~/.config/bash/aliases
[ -d ~/.zfunc ] && PATH="$PATH:$HOME/.zfunc"
prompt_pwd () {
local realhome=~
echo $PWD | sed -e "s|^$realhome|~|" -e 's-\([^/.]\)[^/]*/-\1/-g'
}
PS1='\[\033]2;\u@\h:\w\007\]\[$(tput setaf 3)\]\u@\h\[$(tput sgr0)\]:\[$(tput setaf 4)\]$(prompt_pwd)\[$(tput sgr0)\]\$ '
export EDITOR=vim
dsx="dovi@192.168.1.46"
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
HISTSIZE=10000
HISTFILESIZE=50000
shopt -s checkwinsize
shopt -s globstar
# make less more friendly for non-text input files
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# enable color support of ls, and color aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# basic ls aliases
alias ll='ls -alF'
alias la='ls -lAh'
alias l='ls -CF'
# 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