dotfiles

Alpine Linux dotfiles

git clone git://git.lin.moe/dotfiles.git

 1export XDG_CONFIG_HOME="$HOME/.config"
 2export XDG_DATA_HOME="$HOME/.local/share"
 3export XDG_CACHE_HOME="$XDG_CONFIG_HOME/cache"
 4
 5if test -z "${XDG_RUNTIME_DIR}"; then
 6  export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
 7  if ! test -d "${XDG_RUNTIME_DIR}"; then
 8    mkdir "${XDG_RUNTIME_DIR}"
 9    chmod 0700 "${XDG_RUNTIME_DIR}"
10  fi
11fi
12
13# alpine linux autoload plugins
14ZSH_LOAD_SYSTEM_PLUGINS=yes
15
16export PYTHONUSERBASE="$HOME/.local/share/python"
17
18[ -x "$(command -v gpgconf)" ] && export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
19export GPG_TTY=$(tty)
20
21if [ -x "$(command -v edit)" ] ; then
22    export EDITOR=edit
23elif [ -x "$(command -v emacs)" ]; then
24    export EDITOR="emacsclient -a \"emacs\" -t"
25fi
26
27export PASSWORD_STORE_CHARACTER_SET='[A-Za-z0-9!@?%^_=*#&]'
28# firefox wayland
29export MOZ_WEBRENDER=1
30export MOZ_ENABLE_WAYLAND=1 
31
32
33export SDL_VIDEODRIVER=wayland
34export _JAVA_AWT_WM_NONREPARENTING=1
35export QT_QPA_PLATFORM=wayland
36export XDG_CURRENT_DESKTOP=sway
37export XDG_SESSION_DESKTOP=sway
38
39export BAT_THEME="ansi"
40# export RESTIC_REPOSITORY='sftp:tei:/store/Backup/reisen'
41# export RESTIC_PASSWORD_COMMAND='pass tool/restic/reisen'
42
43[ -f "/etc/ca-certificates/trust-source/anchors/ca.pem" ] && export NODE_EXTRA_CA_CERTS=/etc/ca-certificates/trust-source/anchors/ca.pem
44export NODE_ENV=development
45
46export RCLONE_PASSWORD_COMMAND='pass tool/rclone'
47
48if [ -f "$HOME/.zshenv" ]; then source $HOME/.zshenv; fi  # this for alpine, because of global rc, $HOME/.zshenv will not loaded
49
50GOPATH=/home/lindsay/.local/go
51