2022-01-15 19:00:35 +09:00
|
|
|
#! bash oh-my-bash.module
|
2017-03-19 15:40:25 +07:00
|
|
|
## jobs
|
2017-03-19 16:06:08 +07:00
|
|
|
#setopt long_list_jobs
|
2017-03-19 15:40:25 +07:00
|
|
|
|
|
|
|
## pager
|
|
|
|
env_default PAGER 'less'
|
|
|
|
env_default LESS '-R'
|
|
|
|
|
|
|
|
## super user alias
|
2022-07-03 13:12:07 +09:00
|
|
|
_omb_util_alias _='sudo'
|
|
|
|
_omb_util_alias please='sudo'
|
2017-03-19 15:40:25 +07:00
|
|
|
|
|
|
|
## more intelligent acking for ubuntu users
|
2021-09-24 04:29:09 -07:00
|
|
|
if _omb_util_binary_exists ack-grep; then
|
2022-07-03 13:12:07 +09:00
|
|
|
_omb_util_alias afind='ack-grep -il'
|
2017-03-19 15:40:25 +07:00
|
|
|
else
|
2022-07-03 13:12:07 +09:00
|
|
|
_omb_util_alias afind='ack -il'
|
2017-03-19 15:40:25 +07:00
|
|
|
fi
|
|
|
|
|
|
|
|
# only define LC_CTYPE if undefined
|
|
|
|
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
|
2019-01-23 03:05:32 -08:00
|
|
|
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
|
2017-03-19 15:40:25 +07:00
|
|
|
fi
|
|
|
|
|
|
|
|
# recognize comments
|
2017-03-20 20:21:32 +07:00
|
|
|
shopt -s interactive_comments
|