blob: 600352a0a295060912e4a86d59501389945a9359 (
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
|
# Syntax Highlighting
source /usr/share/blesh/ble.sh
# Incorporate my SH agnostic stuff
[ -f "$XDG_CONFIG_HOME/sh/aliases" ] && source "$XDG_CONFIG_HOME/sh/aliases"
[ -f "$XDG_CONFIG_HOME/sh/functions" ] && source "$XDG_CONFIG_HOME/sh/functions"
# History Search
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
# History Cleaning
export HISTCONTROL="erasedups:ignorespace"
# Run-Help Ability
run-help() { help "$READLINE_LINE" 2>/dev/null || man "$READLINE_LINE"; }
bind -m vi-insert -x '"\eh": run-help'
bind -m emacs -x '"\eh": run-help'
# CD when typing directory name
shopt -s autocd
# Set my prompt
export PS1='\e[42m[\u@\H]\e[46\w\e[42m\$\e(B\e[m '
|