summaryrefslogtreecommitdiffstats
path: root/minimal/.bashrc
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2025-06-04 01:03:45 +0900
committerMitsuo Tokumori <[email protected]>2025-06-04 01:03:45 +0900
commit55fa988f6f8316918f8a1a5a901b0561467c1b77 (patch)
treea2a0346acaf41a3911a7445116003c213152eef6 /minimal/.bashrc
parent0876b5a6254d78910d5530439fd8d2735d257c9a (diff)
downloaddotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.tar.gz
dotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.tar.bz2
dotfiles-55fa988f6f8316918f8a1a5a901b0561467c1b77.zip
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/
Diffstat (limited to 'minimal/.bashrc')
-rw-r--r--minimal/.bashrc42
1 files changed, 42 insertions, 0 deletions
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)"