add qt5ct
set firefox environment variable
update zsh prompt
spectify pycache directory
This commit is contained in:
rydesun 2020-02-11 22:38:02 +08:00
parent f1df791a9f
commit ae8a37c786
3 changed files with 14 additions and 10 deletions

View file

@ -10,16 +10,19 @@ if [ -f $sysmodmap ]; then xmodmap $sysmodmap; fi
if [ -f "$userresources" ]; then xrdb -merge "$userresources"; fi
if [ -f "$usermodmap" ]; then xmodmap "$usermodmap"; fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done; unset f
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done; unset f
fi
# ==================================
export LANG=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export LANG=zh_CN.UTF-8
export QT_QPA_PLATFORMTHEME=qt5ct
export BROWSER=firefox
# swap Caps_Lock and Escape
setxkbmap -option caps:swapescape

View file

@ -65,8 +65,8 @@ promptinit
autoload -Uz colors
colors
setopt transient_rprompt # 右提示符只出现一次
PROMPT='%F{163}%B$(__git_ps1) $(_fish_collapsed_pwd)> %b%f'
RPROMPT='[%F{120}%?%f]%F{135}%n@%m%f'
PROMPT='%F{magenta}%B$(__git_ps1) $(_fish_collapsed_pwd)> %b%f'
RPROMPT='%{$bg[cyan]$fg[white]%} %n@%m %{$reset_color%}'
# git <<<-------------------------------
source /usr/share/git/completion/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=1

View file

@ -1,9 +1,10 @@
GOPATH DEFAULT=@{HOME}packages/go
PYTHONUSERBASE DEFAULT=@{HOME}packages/python
PATH DEFAULT=${GOPATH}/bin:${PYTHONUSERBASE}/bin:@{HOME}packages/node_modules/.bin
GOPATH DEFAULT=@{HOME}.packages/go
PYTHONUSERBASE DEFAULT=@{HOME}.packages/python
PYTHONPYCACHEPREFIX DEFAULT=@{HOME}.cache/python
PATH DEFAULT=@{HOME}bin:${GOPATH}/bin:${PYTHONUSERBASE}/bin:@{HOME}.packages/node_modules/.bin
# default
EDITOR DEFAULT=nvim
BROWSER DEFAULT=firefox-developer-edition
BROWSER DEFAULT=firefox
MANPAGER DEFAULT="nvim -c 'set ft=man' -"
# xdg base directory