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 = ''
|
||||
[ "''${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
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
bn=''${rc##*/}
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
fi
|
||||
unset rc bn
|
||||
|
||||
########################### shell settings & options ###########################
|
||||
#-########################### shell settings & options ###########################
|
||||
set -E
|
||||
set -o pipefail
|
||||
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
shopt -u histverify
|
||||
_have bash_abbr && shopt -u expand_aliases
|
||||
|
||||
############################### shell variables ################################
|
||||
#-############################### shell variables ################################
|
||||
FIGNORE='.o'
|
||||
HISTCONTROL=ignoreboth:erasedups
|
||||
HISTTIMEFORMAT='%y-%m-%d %H:%M:%S '
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
HISTFILESIZE=-1
|
||||
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 LESS='-SRFX'
|
||||
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 PATH
|
||||
|
||||
########################## generally useful functions ##########################
|
||||
#-########################## generally useful functions ##########################
|
||||
take () {
|
||||
: 'Idempotently create directory recursively and cd into it'
|
||||
local out
|
||||
|
|
@ -112,8 +112,8 @@
|
|||
declare plugin
|
||||
for plugin in "''${plugins[@]}"; do
|
||||
case "''$plugin" in
|
||||
# Comment below case match if you don'\'''t want to have a pre-selection of plugins to export
|
||||
# Requires `shopt -s extglob`
|
||||
#-# Comment below case match if you don'\'''t want to have a pre-selection of plugins to export
|
||||
#-# Requires `shopt -s extglob`
|
||||
(+([0-9])-@(util|redact|prompt|docker-tools|funcs|init-and-complete|general-aliases|bash-abbr)) selected[''$plugin]=1 ;;
|
||||
(*) selected[''$plugin]=
|
||||
esac
|
||||
|
|
@ -211,7 +211,7 @@
|
|||
EOF
|
||||
}
|
||||
|
||||
#################################### binds #####################################
|
||||
#-#################################### binds #####################################
|
||||
bind '"\e\C-r": kill-region' \
|
||||
'"\C-x\C-k": kill-whole-line' \
|
||||
'"\e\C-p": history-search-backward' \
|
||||
|
|
@ -230,23 +230,23 @@
|
|||
'set colored-completion-prefix on' \
|
||||
'set colored-stats on'
|
||||
|
||||
################################## autoclear ###################################
|
||||
# TODO
|
||||
#-################################## autoclear ###################################
|
||||
#-# TODO
|
||||
|
||||
# prank () {
|
||||
# line_up_until_cursor=''${READLINE_LINE::READLINE_POINT}
|
||||
# line_after_cursor=''${READLINE_LINE:READLINE_POINT}
|
||||
# if [[ ''$((RANDOM % 5)) -eq 0 ]]; then
|
||||
# READLINE_LINE="''$line_up_until_cursor''$line_after_cursor"
|
||||
# #READLINE_LINE="''$line_up_until_cursor''${1^}''$line_after_cursor"
|
||||
# READLINE_POINT=''$((READLINE_POINT+1))
|
||||
# else
|
||||
# READLINE_LINE="''$line_up_until_cursor''$1''$line_after_cursor"
|
||||
# READLINE_POINT=''$((READLINE_POINT+1))
|
||||
# fi
|
||||
# }
|
||||
# bind -x '" ": prank " "'
|
||||
# bind -x '"a": prank "a"'
|
||||
#-# prank () {
|
||||
#-# line_up_until_cursor=''${READLINE_LINE::READLINE_POINT}
|
||||
#-# line_after_cursor=''${READLINE_LINE:READLINE_POINT}
|
||||
#-# if [[ ''$((RANDOM % 5)) -eq 0 ]]; then
|
||||
#-# READLINE_LINE="''$line_up_until_cursor''$line_after_cursor"
|
||||
#-# #READLINE_LINE="''$line_up_until_cursor''${1^}''$line_after_cursor"
|
||||
#-# READLINE_POINT=''$((READLINE_POINT+1))
|
||||
#-# else
|
||||
#-# READLINE_LINE="''$line_up_until_cursor''$1''$line_after_cursor"
|
||||
#-# READLINE_POINT=''$((READLINE_POINT+1))
|
||||
#-# fi
|
||||
#-# }
|
||||
#-# bind -x '" ": prank " "'
|
||||
#-# bind -x '"a": prank "a"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue