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.
26 lines
716 B
Cheetah
26 lines
716 B
Cheetah
4 years ago
|
#!/usr/bin/env bash
|
||
4 years ago
|
|
||
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
|
||
|
|
||
2 years ago
|
{{ if and (lookPath "setxkbmap") (eq .chezmoi.os "linux") -}}
|
||
4 years ago
|
# Disable capslock
|
||
2 years ago
|
setxkbmap -option ctrl:nocaps
|
||
|
{{- end }}
|
||
4 years ago
|
|
||
2 years ago
|
{{ if lookPath "lesspipe" -}}
|
||
4 years ago
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||
2 years ago
|
eval "$(SHELL=/bin/sh {{ lookPath "lesspipe" }})"
|
||
|
{{- end }}
|
||
4 years ago
|
|
||
2 years ago
|
{{ if lookPath "dircolors" -}}
|
||
4 years ago
|
# enable color support of ls and also add handy aliases
|
||
2 years ago
|
if test -r ~/.dircolors; then
|
||
|
eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||
4 years ago
|
fi
|
||
2 years ago
|
{{- end }}
|
||
|
|
||
|
# vim: filetype=bash
|