summaryrefslogtreecommitdiff
path: root/home/xyz/.profile
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-12-14 19:43:47 -0800
committerxyz <gky44px1999@gmail.com>2021-12-14 19:43:47 -0800
commit46925ea55880d733352137cbd060ee312bfb3848 (patch)
treea0cb95f93038754e3b6d2758b6e209a2c037986d /home/xyz/.profile
parentae8868451352df27a30c7869e8f1b643fe726a63 (diff)
must source .bashrc after export _ZO_ECHO=1 and INPUTRC=..., else these two env will has no effect,I do not know why
Diffstat (limited to 'home/xyz/.profile')
-rw-r--r--home/xyz/.profile15
1 files changed, 9 insertions, 6 deletions
diff --git a/home/xyz/.profile b/home/xyz/.profile
index 7ac7405a..29cf48d6 100644
--- a/home/xyz/.profile
+++ b/home/xyz/.profile
@@ -1,11 +1,5 @@
#!/bin/dash
-# here `. ~/.bashrc` same as `source ~/.bashrc`, see `source filename` in `man bash`, and `. file` in `man dash`
-# `. file` is POSIX compliant, while `source file` is not
-# https://github.com/koalaman/shellcheck/wiki/SC3046
-#[[ -f ~/.bashrc ]] && . ~/.bashrc
-[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
-
export XDG_CONFIG_HOME="$HOME/.config/"
export XDG_CACHE_HOME="$HOME/.cache/"
export XDG_DATA_HOME="$HOME/.local/share/"
@@ -41,10 +35,12 @@ export MANPAGER='nvim -M +Man!'
export MANSECT='1p:1:n:l:8:3p:3:0p:0:2:5:4:9:6:7'
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
+export INPUTRC="$XDG_CONFIG_HOME/.inputrc"
#export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORMTHEME=gtk2
#export QT_STYLE_OVERRIDE=kvantum
export SXHKD_SHELL=sh
+export _ZO_ECHO=1
# enable color for `tree` command, not forced
export CLICOLOR=1
# for pacdiff, without using aur neovim-drop-in or neovim-symlinks
@@ -82,6 +78,13 @@ export SCR_HEIGHT=900
#export GDK_SCALE=2
#export GDK_DPI_SCALE=0.5
+# must source .bashrc after export _ZO_ECHO=1 and INPUTRC=..., else these two env will has no effect, don't know why
+# here `. ~/.bashrc` same as `source ~/.bashrc`, see `source filename` in `man bash`, and `. file` in `man dash`
+# `. file` is POSIX compliant, while `source file` is not
+# https://github.com/koalaman/shellcheck/wiki/SC3046
+#[[ -f ~/.bashrc ]] && . ~/.bashrc
+[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
+
# startx when login, should be put after environmental variables for .xinitrc to use
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx