aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]dot-profile72
1 files changed, 37 insertions, 35 deletions
diff --git a/dot-profile b/dot-profile
index ed8aab3..877f581 100644..100755
--- a/dot-profile
+++ b/dot-profile
@@ -4,16 +4,19 @@
# PROFILE
#
-# Add scripts to PATH
+# SCRIPTS
[ -d ~/repos/scripts ] && PATH=$PATH:~/repos/scripts
-# Variables
-export EDITOR=vim
-export VISUAL=vim
-export LESSHISTFILE=/dev/null
+# EDITOR
+if command -v vim >/dev/null 2>&1; then
+ export EDITOR=vim
+ export VISUAL=vim
+fi
-# Colour man pages
-export GROFF_NO_SGR=1
+# LESS
+export LESS="-R"
+export LESSCHARSET=utf-8
+export LESSHISTFILE=/dev/null
export LESS_TERMCAP_mb=$'\e[01;33m' # begin blinking
export LESS_TERMCAP_md=$'\e[01;33m' # begin bold
export LESS_TERMCAP_me=$'\e[0m' # end all mode like so, us, mb, md, mr
@@ -22,33 +25,32 @@ export LESS_TERMCAP_se=$'\e[0m' # end standout-mode
export LESS_TERMCAP_us=$'\e[1;37m' # start underlining
export LESS_TERMCAP_ue=$'\e[0m' # end underline
-#
# BEMENU
-#
-
-fg='#eeeeee'
-bg='#000000'
-mg='#111111'
-hl='#31748f'
+if command -v bemenu >/dev/null 2>&1; then
+ fg="#eeeeee"
+ bg="#000000"
+ mg="#111111"
+ hl="#00ffff"
-export BEMENU_OPTS="
---ignorecase \
---no-spacing \
---width-factor 0.4 \
---line-height 20 \
---list 10 \
---border 2 \
---border-radius 5 \
---prompt '>' \
---scroll always \
---single-instance \
---bdr $hl \
---tb $mg --tf $hl \
---cb $fg --cf $fg \
---nb $bg --nf $fg \
---hb $hl --hf $bg \
---fb $mg --ff $fg \
---sb '#00ff00' --sf '#0000ff' \
---ab $bg --af $fg \
---scb $bg --scf $hl
-"
+ export BEMENU_OPTS="
+ --ignorecase \
+ --no-spacing \
+ --width-factor 0.4 \
+ --line-height 20 \
+ --list 10 \
+ --border 2 \
+ --border-radius 5 \
+ --prompt '>' \
+ --scroll always \
+ --single-instance \
+ --bdr $hl \
+ --tb $mg --tf $hl \
+ --cb $fg --cf $fg \
+ --nb $bg --nf $fg \
+ --hb $hl --hf $bg \
+ --fb $mg --ff $fg \
+ --sb '#00ff00' --sf '#0000ff' \
+ --ab $bg --af $fg \
+ --scb $bg --scf $hl
+ "
+fi