summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc61
1 files changed, 35 insertions, 26 deletions
diff --git a/bashrc b/bashrc
index 58a2cd3..cafc93a 100644
--- a/bashrc
+++ b/bashrc
@@ -121,34 +121,43 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
-# Bash completition for pandoc
-eval "$(pandoc --bash-completion)"
+# My shit
+# =======
-# Greeting or salute
-# TODO: randomly select one of the following greeting commands
-#cowsay -f flaming-sheep "oh no" # original
-#cowsay $(fortune -e 30% debian-hints 20% linux 20% science \
-cowsay $(fortune 30% debian-hints 20% linux 20% science \
- 20% off/linux 10% off/black-humor)
-#fortune ascii-art
-
-# Some environmental variables.
+# Custom prompt:
+# Blue timestamp and italic green pwd
+PS1='\[\033[34m\]|\D{%H:%M:%S}| \[\033[3;32m\][\w]\[\033[00m\]\n\$ '
+
+# Environmental variables:
+# less(1) config (ignore case in searchs and display raw control characters)
+export LESS="-i --RAW-CONTROL-CHARS";
+# Needed for tldr(1)
export TLDR_CONFIG_DIR="$XDG_CONFIG_HOME"
+# Needed for gpg(1)?
export GPG=TTY=$(tty)
-# Disable this shit that broke many things in my system ( RIP hplip :( )
-## >>> conda initialize >>>
-## !! Contents within this block are managed by 'conda init' !!
-#__conda_setup="$('/home/mitsuo/code/Anaconda/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
-#if [ $? -eq 0 ]; then
-# eval "$__conda_setup"
-#else
-# if [ -f "/home/mitsuo/code/Anaconda/anaconda3/etc/profile.d/conda.sh" ]; then
-# . "/home/mitsuo/code/Anaconda/anaconda3/etc/profile.d/conda.sh"
-# else
-# export PATH="/home/mitsuo/code/Anaconda/anaconda3/bin:$PATH"
-# fi
-#fi
-#unset __conda_setup
-## <<< conda initialize <<<
+# Bash completition for pandoc
+if [ -f /usr/bin/pandoc ]; then
+ eval "$(pandoc --bash-completion)"
+fi
+
+# Greeting or salute
+if [ -f /usr/games/cowsay ]; then
+ # TODO: randomly select one of the following greeting commands
+ #cowsay -f flaming-sheep "oh no" # original
+ #cowsay $(fortune -e 30% debian-hints 20% linux 20% science \
+ cowsay $(fortune 30% debian-hints 20% linux 20% science \
+ 20% off/linux 10% off/black-humor)
+ #fortune ascii-art
+fi
+# Homebrew (linuxbrew)
+
+if [ -f /usr/bin/brew ]; then
+ # for elf executables
+ export PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
+ # for manpages
+ export MANPATH="/home/linuxbrew/.linuxbrew/share/man:${MANPATH}"
+ # for info pages
+ export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH}"
+fi