You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
677 B
Bash
25 lines
677 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
4 years ago
|
#ft=bash
|
||
|
|
||
3 years ago
|
# always save bash history before showing prompt; allow reloading bashrc
|
||
2 years ago
|
if [[ ! $PROMPT_COMMAND =~ "history -a" ]]; then
|
||
|
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||
3 years ago
|
fi
|
||
|
|
||
4 years ago
|
# Disable capslock
|
||
|
if [[ -x $(which setxkbmap) ]] && [[ $(uname) == Linux ]]; then
|
||
2 years ago
|
setxkbmap -option ctrl:nocaps
|
||
4 years ago
|
fi
|
||
|
|
||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||
|
if [ -x /usr/bin/lesspipe ]; then
|
||
2 years ago
|
eval "$(SHELL=/bin/sh lesspipe)"
|
||
4 years ago
|
fi
|
||
|
|
||
|
# enable color support of ls and also add handy aliases
|
||
|
if [ -x /usr/bin/dircolors ]; then
|
||
2 years ago
|
if test -r ~/.dircolors; then
|
||
|
eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||
|
fi
|
||
4 years ago
|
fi
|