summaryrefslogtreecommitdiffstats
path: root/infest/skel/etc/profile
blob: 2812c86c36010f7ec9a274ab918c081cc0353200 (plain)
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
#! /bin/sh

export EDITOR=vi

set -u
alias bc='bc -q'
alias df='df -h'
alias du='du -h'
alias grep='grep --color=auto'
alias ps?="ps ax | head -n 1;ps ax | fgrep -v ' grep --color=auto ' | grep"
alias la='ls -lA'
alias lAtr='ls -lAtr'
alias ll='ls -l'
alias ls='ls -h --color=auto --group-directories-first'
alias vi='vim'
alias vim='vim -p'
alias view='vim -R'

set -o notify

if test -n "${BASH_VERSION-}" ; then
  shopt -s checkhash
  shopt -s histappend histreedit histverify
  shopt -s no_empty_cmd_completion
  complete -d cd

  function comp_sch() {
    local cword="${COMP_WORDS[$COMP_CWORD]}"
    COMPREPLY=( $(sch -l "$cword.*" ) )
  }
  complete -F comp_sch sch
fi

export HISTSIZE='65536'
export HISTFILESIZE="$HISTSIZE"
export HISTCONTROL='ignoredups'

case "${TERM-dumb}" in
  linux) PS1_COLOR=34 ;;
  rxvt-unicode) PS1_COLOR=30 ;;
      *) PS1_COLOR=39 ;;
esac
PS1='\[\033[${PS1_COLOR}m\]$(PS1)\[\033[32m\]\w\[\033[39m\]${PSx-} ' # green \w
PS1='\[\033[32m\]\w\[\033[m\] ' # green \w

#if test -n "${SSH_CLIENT-}" ; then
  PS1='\[\033[35m\]\h'" $PS1" # prefix with magenta hostname
  #TERM=xterm-256color xtermcontrol --bg \#292d29 --fg \#d0d0d0
#fi

export PATH="/krebs/bin:$PATH"

echo '--' >&2
test -e ~/TODO && cat ~/TODO >&2

set +u

cd /krebs