Fix comment format in main .bashrc
This commit is contained in:
parent
e0100ce27f
commit
6d508d00ba
1 changed files with 25 additions and 25 deletions
|
|
@ -6,9 +6,9 @@
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
[ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO
|
[ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO
|
||||||
|
|
||||||
[ "$DISPLAY" ] && xset r rate 200 60
|
[ "$DISPLAY" ] && xset r rate 300 60
|
||||||
|
|
||||||
##################### user specific aliases and functions ######################
|
#-##################### user specific aliases and functions ######################
|
||||||
if [ -d ~/.bashrc.d ]; then
|
if [ -d ~/.bashrc.d ]; then
|
||||||
for rc in ~/.bashrc.d/*; do
|
for rc in ~/.bashrc.d/*; do
|
||||||
bn=''${rc##*/}
|
bn=''${rc##*/}
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
fi
|
fi
|
||||||
unset rc bn
|
unset rc bn
|
||||||
|
|
||||||
########################### shell settings & options ###########################
|
#-########################### shell settings & options ###########################
|
||||||
set -E
|
set -E
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
shopt -u histverify
|
shopt -u histverify
|
||||||
_have bash_abbr && shopt -u expand_aliases
|
_have bash_abbr && shopt -u expand_aliases
|
||||||
|
|
||||||
############################### shell variables ################################
|
#-############################### shell variables ################################
|
||||||
FIGNORE='.o'
|
FIGNORE='.o'
|
||||||
HISTCONTROL=ignoreboth:erasedups
|
HISTCONTROL=ignoreboth:erasedups
|
||||||
HISTTIMEFORMAT='%y-%m-%d %H:%M:%S '
|
HISTTIMEFORMAT='%y-%m-%d %H:%M:%S '
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
HISTFILESIZE=-1
|
HISTFILESIZE=-1
|
||||||
HISTFILE=''$HOME/.''${USER:-default}_bash_history
|
HISTFILE=''$HOME/.''${USER:-default}_bash_history
|
||||||
|
|
||||||
############################ environment variables #############################
|
#-############################ environment variables #############################
|
||||||
export PYTHON_BASIC_REPL=1 # I'm good at readline so I'm gonna use readline whereever possible!
|
export PYTHON_BASIC_REPL=1 # I'm good at readline so I'm gonna use readline whereever possible!
|
||||||
export LESS='-SRFX'
|
export LESS='-SRFX'
|
||||||
export PAGER='less' GIT_PAGER='less' MANPAGER='less' SYSTEMD_PAGER='less'
|
export PAGER='less' GIT_PAGER='less' MANPAGER='less' SYSTEMD_PAGER='less'
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
export EDITOR='vim' VISUAL='vim' FCEDIT='vim' SYSTEMD_EDITOR='vim'
|
export EDITOR='vim' VISUAL='vim' FCEDIT='vim' SYSTEMD_EDITOR='vim'
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
########################## generally useful functions ##########################
|
#-########################## generally useful functions ##########################
|
||||||
take () {
|
take () {
|
||||||
: 'Idempotently create directory recursively and cd into it'
|
: 'Idempotently create directory recursively and cd into it'
|
||||||
local out
|
local out
|
||||||
|
|
@ -112,8 +112,8 @@
|
||||||
declare plugin
|
declare plugin
|
||||||
for plugin in "''${plugins[@]}"; do
|
for plugin in "''${plugins[@]}"; do
|
||||||
case "''$plugin" in
|
case "''$plugin" in
|
||||||
# Comment below case match if you don'\'''t want to have a pre-selection of plugins to export
|
#-# Comment below case match if you don'\'''t want to have a pre-selection of plugins to export
|
||||||
# Requires `shopt -s extglob`
|
#-# Requires `shopt -s extglob`
|
||||||
(+([0-9])-@(util|redact|prompt|docker-tools|funcs|init-and-complete|general-aliases|bash-abbr)) selected[''$plugin]=1 ;;
|
(+([0-9])-@(util|redact|prompt|docker-tools|funcs|init-and-complete|general-aliases|bash-abbr)) selected[''$plugin]=1 ;;
|
||||||
(*) selected[''$plugin]=
|
(*) selected[''$plugin]=
|
||||||
esac
|
esac
|
||||||
|
|
@ -211,7 +211,7 @@
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
#################################### binds #####################################
|
#-#################################### binds #####################################
|
||||||
bind '"\e\C-r": kill-region' \
|
bind '"\e\C-r": kill-region' \
|
||||||
'"\C-x\C-k": kill-whole-line' \
|
'"\C-x\C-k": kill-whole-line' \
|
||||||
'"\e\C-p": history-search-backward' \
|
'"\e\C-p": history-search-backward' \
|
||||||
|
|
@ -230,23 +230,23 @@
|
||||||
'set colored-completion-prefix on' \
|
'set colored-completion-prefix on' \
|
||||||
'set colored-stats on'
|
'set colored-stats on'
|
||||||
|
|
||||||
################################## autoclear ###################################
|
#-################################## autoclear ###################################
|
||||||
# TODO
|
#-# TODO
|
||||||
|
|
||||||
# prank () {
|
#-# prank () {
|
||||||
# line_up_until_cursor=''${READLINE_LINE::READLINE_POINT}
|
#-# line_up_until_cursor=''${READLINE_LINE::READLINE_POINT}
|
||||||
# line_after_cursor=''${READLINE_LINE:READLINE_POINT}
|
#-# line_after_cursor=''${READLINE_LINE:READLINE_POINT}
|
||||||
# if [[ ''$((RANDOM % 5)) -eq 0 ]]; then
|
#-# if [[ ''$((RANDOM % 5)) -eq 0 ]]; then
|
||||||
# READLINE_LINE="''$line_up_until_cursor''$line_after_cursor"
|
#-# READLINE_LINE="''$line_up_until_cursor''$line_after_cursor"
|
||||||
# #READLINE_LINE="''$line_up_until_cursor''${1^}''$line_after_cursor"
|
#-# #READLINE_LINE="''$line_up_until_cursor''${1^}''$line_after_cursor"
|
||||||
# READLINE_POINT=''$((READLINE_POINT+1))
|
#-# READLINE_POINT=''$((READLINE_POINT+1))
|
||||||
# else
|
#-# else
|
||||||
# READLINE_LINE="''$line_up_until_cursor''$1''$line_after_cursor"
|
#-# READLINE_LINE="''$line_up_until_cursor''$1''$line_after_cursor"
|
||||||
# READLINE_POINT=''$((READLINE_POINT+1))
|
#-# READLINE_POINT=''$((READLINE_POINT+1))
|
||||||
# fi
|
#-# fi
|
||||||
# }
|
#-# }
|
||||||
# bind -x '" ": prank " "'
|
#-# bind -x '" ": prank " "'
|
||||||
# bind -x '"a": prank "a"'
|
#-# bind -x '"a": prank "a"'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue