summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_profile4
-rw-r--r--.bashrc19
2 files changed, 12 insertions, 11 deletions
diff --git a/.bash_profile b/.bash_profile
index 3b143e96..429ab6cb 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -33,7 +33,7 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
#export QT_QPA_PLATFORMTHEME=qt5ct
export QT_STYLE_OVERRIDE=kvantum
-export SDCV_PAGER="less --quit-if-one-screen -RX"
+export SDCV_PAGER='less --quit-if-one-screen -RX'
export SXHKD_SHELL=sh
export _ZO_ECHO=1
@@ -61,6 +61,6 @@ export SCRWIDTH=1600
export SCRHEIGHT=900
# startx when login, should be put after environmental variables for .xinitrc to use
-if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx
fi
diff --git a/.bashrc b/.bashrc
index d333aedb..c6d12021 100644
--- a/.bashrc
+++ b/.bashrc
@@ -21,18 +21,19 @@ esac
# \e[m act like \e[0m, means reset so commands after it will not be colored
# https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
# need \[ and \] around color codes so bash ignore color codes when calculating line wraps
-PS1="\[\e[0;91m\][\u@\h \W]\$ \[\e[0m\]"
+PS1='\[\e[0;91m\][\u@\h \W]\$ \[\e[0m\]'
alias \
-absolutely-proprietary="absolutely-proprietary -f" \
-alsamixer="alsamixer -V all" \
-diff="diff --color=auto" \
-grep="grep --color=auto" \
-ls="ls --color=auto" \
-rm="rm -vI" \
-sdcv="sdcv --color" \
+absolutely-proprietary='absolutely-proprietary -f' \
+alsamixer='alsamixer -V all' \
+diff='diff --color=auto' \
+grep='grep --color=auto' \
+ls='ls --color=auto' \
+rm='rm -vI' \
+sdcv='sdcv --color' \
g=git \
-ll="ls -lAh --color=auto --group-directories-first" \
+ll='ls -lAh --color=auto --group-directories-first' \
+o=xdg-open \
v='$EDITOR' \
vq='$EDITOR "$XDG_DOCUMENTS_DIR/notes/others/questions_ideas_tips.md"' \
vc='$EDITOR "$XDG_DOCUMENTS_DIR/notes/computer/command-line_notes.md"'