diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-09 23:48:04 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-09 23:48:04 -0700 |
commit | 2b69161bbee641bf1ae339febc74617ed6407e2e (patch) | |
tree | d39935e00ff70fb8c12937f414a45a46688596c9 | |
parent | 3f4defd111fc1011c79a83635a3180b3ec21f8b1 (diff) |
refactor
-rw-r--r-- | .bash_profile | 4 | ||||
-rw-r--r-- | .bashrc | 19 |
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 @@ -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"' |