💾 Archived View for gmi.noulin.net › gitRepositories › systemSetup › file › freebsd › .bashrc.gmi captured on 2023-01-29 at 11:31:16. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
.bashrc (1989B)
1 # ~/.bashrc: executed by bash(1) for non-login shells. 2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 # for examples 4 5 # If not running interactively, don't do anything 6 [ -z "$PS1" ] && return 7 8 # append to the history file, don't overwrite it 9 shopt -s histappend 10 11 # don't put duplicate lines in the history. See bash(1) for more options 12 export HISTCONTROL=ignoredups 13 14 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 15 export HISTSIZE=100000 16 export HISTFILESIZE=100000 17 export HISTTIMEFORMAT="%y-%m-%d %T " 18 19 # default editor 20 export EDITOR=vim 21 22 # check the window size after each command and, if necessary, 23 # update the values of LINES and COLUMNS. 24 shopt -s checkwinsize 25 26 # If set, the pattern "**" used in a pathname expansion context will 27 # match all files and zero or more directories and subdirectories. 28 #shopt -s globstar 29 30 PS1="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h\[\e[33m\] \w\[\e[0m\] \D{%m-%d %H:%M}> " 31 32 # enable color support of ls and also add handy aliases 33 alias grep='grep --color=always' 34 export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" 35 export LESS=' -R ' 36 37 alias ls='ls --color' 38 39 # Alias definitions. 40 # You may want to put all your additions into a separate file like 41 # ~/.bash_aliases, instead of adding them here directly. 42 # See /usr/share/doc/bash-doc/examples in the bash-doc package. 43 44 if [ -f ~/.bash_aliases ]; then 45 . ~/.bash_aliases 46 fi 47 48 # enable programmable completion features (you don't need to enable 49 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 50 # sources /etc/bash.bashrc). 51 if ! shopt -oq posix; then 52 if [ -f /usr/share/bash-completion/bash_completion ]; then 53 . /usr/share/bash-completion/bash_completion 54 elif [ -f /etc/bash_completion ]; then 55 . /etc/bash_completion 56 fi 57 fi 58 59 # unset locale forwarded by ssh 60 unset LC_PAPER LC_ADDRESS LC_MONETARY LC_NUMERIC LC_TELEPHONE LC_IDENTIFICATION LC_MEASUREMENT LC_TIME LC_NAME 61 62 [ -f ~/.fzf.bash ] && source ~/.fzf.bash