1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 02:43:23 -07:00
rc/home/bashrc

63 lines
1.2 KiB
Bash
Raw Normal View History

2013-06-28 05:22:14 -07:00
[ -z "$PS1" ] && return
2021-07-29 00:37:35 -07:00
echo START.bashrc
# trace: (on ubuntu)
# /etc/bash.bashrc
#=> /etc/debian_chroot
#=> /.sudo_as_admin_successful
#=> /.hushlogin
#=> /usr/lib/command-not-found
#=> /usr/share/command-not-found/command-not-found
# ~/.bashrc
if [ "$TERM" = rxvt-unicode-256color ]; then
2013-06-28 05:22:14 -07:00
export TERM=xterm-256color
fi
HISTCONTROL=erasedups
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s histappend
shopt -s checkwinsize
#shopt -s physical # chaselinks (doesn't exist?)
set -o hashall # enable hash command
2013-06-28 05:22:14 -07:00
if [[ "$TERM" = xterm* ]]; then
_title="\[\033]2;\w\a\]"
else
_title=""
fi
Csucc=$'\\[\e[42m\\]'
Cfail=$'\\[\e[41m\\]'
_line1=$' \\[\e[0m\\]'
_line2=$'\\[\e[1;37m\\]\\$\\[\e[0m\\] '
ret_succ="$_title${Csucc}$_line1\n${Csucc}$_line2"
ret_fail="$_title${Cfail}$_line1\n${Cfail}$_line2"
PROMPT_COMMAND='[ $? = 0 ] && PS1=${ret_succ} || PS1=${ret_fail}'
2021-07-29 00:37:35 -07:00
SOURCING=$((SOURCING+1))
. ~/sh/echo2
. ~/sh/note
. ~/sh/stfu
. ~/sh/has
SOURCING=$((SOURCING-1))
echo START.-shrc
2014-03-14 17:04:46 -07:00
. ~/.-shrc
2021-07-29 00:37:35 -07:00
echo FINISH.-shrc
SOURCING=$((SOURCING+1))
. ~/sh/arrays
. ~/sh/streamcrap
SOURCING=$((SOURCING-1))
2013-06-28 05:22:14 -07:00
# this doesn't work for all scripts at the moment, but
2013-07-01 02:22:36 -07:00
ADDPATH "$HOME/sh"
2013-06-29 11:47:01 -07:00
2021-07-29 00:37:35 -07:00
# TODO: respect initctl like in .zshrc.
2013-11-15 13:48:43 -08:00
alias reload='cd; exec bash'
2021-07-29 00:37:35 -07:00
echo FINISH.bashrc