# Personal initialization of my interactive Bash shells # # Modified from `/etc/skel/.bashrc`. # # PUBLIC at `http://reluk.ca/.bashrc` because another of my shell initializers is. if [[ $- != *i* ]] ; then # This shell is not interactive. return fi alias a='git add' alias aa='git add --all' alias c='git commit' alias d='git diff' alias l='git log' alias s='git status' alias work='cd $HOME/work/' # (An environment changer, it would not work formed as a script.) # My command directory, as per `http://reluk.ca/project/lexicon.brec`. # Keyboard select # ─────────────── # This is actually a Rxvt-unicode feature, so it works only under X (see `~/.Xresources`). # https://github.com/xyb3rt/urxvt-perls # Readline initialization for interactive shells only, wherefore put here as opposed to `~/.inputrc` # ─────────────────────── bind 'set completion-ignore-case on' # ‘If set to `On`, `readline` performs filename matching # and completion in a case-insensitive fashion.’ # Bash history search, alas, has no equivalent. https://unix.stackexchange.com/q/686664/140715 bind 'set completion-map-case on' # ‘If set to `On`, and `completion-ignore-case` is enabled, # [then] `readline` treats hyphens (-) and underscores (_) as equivalent when performing # case-insensitive filename matching and completion.’ bind 'set show-all-if-ambiguous on' # ‘This alters the default behavior of the completion functions. # If set to `On`, words which have more than one possible completion cause the matches to be listed # immediately instead of ringing the bell.’ # Moreover Readline’s key bindings may be changed in `/etc/inputrc`.