From 55fa988f6f8316918f8a1a5a901b0561467c1b77 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Wed, 4 Jun 2025 01:03:45 +0900 Subject: Create extra/ and minimal/ minimal/ should be a minimal subset of public/ to be used when installing configuration files on a VPS or VM. Move .git-prompt.sh to extra to be sym-linked both in public/ and minimal/ --- minimal/.bashrc | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 minimal/.bashrc (limited to 'minimal/.bashrc') diff --git a/minimal/.bashrc b/minimal/.bashrc new file mode 100644 index 0000000..761e585 --- /dev/null +++ b/minimal/.bashrc @@ -0,0 +1,42 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Bash config +#export EDITOR=nvim +#HISTCONTROL=ignoreboth +#shopt -s histappend +#HISTSIZE=1000 +#HISTFILESIZE=2000 +#shopt -s checkwinsize + +# Alias definitions. +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# Disable CTRL+S and CTRL+Q keybindings +# (used to pause and resume output to terminal) +# See: https://unix.stackexchange.com/a/137846/347754 +# https://unix.stackexchange.com/a/73499/347754 +stty -ixon + +# Prompt +# - user@host pwd (git prompt) +# Ref.: https://stackoverflow.com/a/15398153/7498073 +source ~/.git-prompt.sh +#PS1='[\u@\h \W]\$ ' +PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' + +# less +LESS="-i" # ignore case +LESS+=" -S" # don't chop long lines +LESS+=" -j5" # Add 5 context lines +LESS+=" --RAW-CONTROL-CHARS" +export LESS + +# better `ls` (and other programs like `tree`) colors +#eval "$(dircolors)" -- cgit v1.2.3