--- /dev/null
+root = true
+
+[*]
+charset = utf-8
+
+max_line_length = 79
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+tab_width = 8
+indent_style = space
+indent_size = 4
+
+[/etc/fontconfig/fonts.conf]
+indent_size = 2
+[[ -v _sev_home ]] || export _sev_home=$HOME
+
export ZDOTDIR=${XDG_CONFIG_HOME:-~/.config}/zsh
### load site-specific
unset _oldterm
}
-if [[ -o login ]] {
- ### cd on login shell for convenience
- # NOTE: we do this here and not in .zprofile since we occasionally might
- # re-source .zprofile, and it's easier to just put the logic here...
- cd ~
-} else {
- if [[ ! -v _sev_first_display && ( -v DISPLAY || -v WAYLAND_DISPLAY ) ]] {
- ### update gpgagent to use graphical pinentry
- # XXX: will be sourced by every new child shell if zsh is not used to
- # start the graphical session and the _sev_first_disaply var isn't
- # exported; for example, this happens with sway without a display
- # manager or launcher in front of it
- export _sev_first_display=
- _sev_refresh_gpgagent= source ${ZDOTDIR:-~}/.zprofile
- } elif [[ $SHLVL == 1 ]] {
- ### early zprofile sourcing for first shell even if not a login shell
- # NOTE: ensure profile is loaded for toplevel shells; should hopefully be 1
- # under some Xorg or cron implementations, which is where this would be most useful
- source ${ZDOTDIR:-~}/.zprofile
- }
+# NOTE: see .zprofile comment for rationale on sourcing
+if [[ ! -v _sev_first_display && ( -v DISPLAY || -v WAYLAND_DISPLAY ) ]] {
+ ### update gpgagent to use graphical pinentry
+ # XXX: will be sourced by every new child shell if zsh is not used to
+ # start the graphical session and the _sev_first_display var isn't
+ # exported; for example, this previously happened with sway without a
+ # display manager or launcher in front of it
+ export _sev_first_display=
+ _sev_refresh_gpgagent= source ${ZDOTDIR:-~}/.zprofile
+} elif [[ ! -o login && $SHLVL == 1 ]] {
+ ### early zprofile sourcing for first shell even if not a login shell
+ source ${ZDOTDIR:-~}/.zprofile
}
-
-# vim: et sts=4 sw=4 ts=8 tw=79
ykman -d $x oath accounts uri -fp $p $y
done
done
-# vim: sts=4 sw=4 et
</prefer>
</alias>
</fontconfig>
-
-<!-- vim: set et ft=xml sts=2 sw=2 ts=8 tw=0 :
--->
match WhiteSpaceMol / /
2match WhiteSpaceBol /\(^ \+\)\|\( \+$\)/
-" vim: set et fenc=utf-8 ft=vim sts=4 sw=4 ts=8 tw=79 :
+let g:EditorConfig_enable_for_new_buf = 1
### load site-specific
if [[ -f ${ZDOTDIR:-~}/.zlogin.local ]] { source ${ZDOTDIR:-~}/.zlogin.local }
-# vim: et sts=4 sw=4 ts=8 tw=79
+### cd for convenience
+[[ -o login ]] && cd ${_sev_home:-~}
# but it should be cleared out on next session launch
_sev_zcleanup
## unset vars that use our tmp since above will remove them
-unset XDG_CACHE_HOME XDG_RUNTIME_DIR
+[[ XDG_CACHE_HOME = $_sev_tmp/.xdg.cache ]] && unset XDG_CACHE_DIR
+[[ XDG_RUNTIME_DIR = $TMPDIR/.xdg.runtime ]] && unset XDG_RUNTIME_DIR
## clean up any remaining sockets from gpg forwarding
-[[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(N=)
+[[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(=N)
if [[ -o interactive ]] {
echo logout
### load site-specific
if [[ -f ${ZDOTDIR:-~}/.zlogout.local ]] { source ${ZDOTDIR:-~}/.zlogout.local }
-
-# vim: et sts=4 sw=4 ts=8 tw=79
# properly configured for any child processes.
# * some desktop environments/graphical terminal emulators will start new
# terminal windows with login shells, which runs .zprofile every time and
-# leads to noticably slow startup times.
-# * switching users without wiping the environment will result in paths and
-# variables intended for the old user being used for the new user. while
-# this may be considered an edge-case that should not be supported, there
-# are legitimate reasons to want to do this, and in any case the shell
-# should not choke or cause unexpected problems should it happen anyway.
+# leads to noticably slow startup times if we have not already ran it.
### cleanup
# XXX: only call after relevant vars have been set up, defined early so that
# XXX: perms are not specified for XDG dirs except runtime, but I think 760
# makes the most sense. shouldn't break anything since no one else should
# be poking around in our dir.
-[[ -e ~/.local ]] || mkdir -m760 ~/.local
+[[ -e ${_sev_home:-~}/.local ]] || mkdir -m760 ${_sev_home:-~}/.local
### tmp
# NOTE: specs say that POSIX tmp and XDG runtime directories should exist
# toplevel session (i.e. SHLVL=1). this should placate most applications,
# though it is not expressly spec compliant.
if [[ ! -v _sev_tmp ]] {
- _sev_tmp=~/.local/tmp
+ _sev_tmp=${_sev_home:-~}/.local/tmp
# NOTE: race condition/remove in use files
[[ -h $_sev_tmp ]] && unlink $_sev_tmp 2>/dev/null
t=${TMPDIR:-${TEMP:-${TMP:-/tmp}}}/.home-$LOGNAME
}
}
- # make runtime dir in our session-specific tmpdir
- export XDG_RUNTIME_DIR=$TMPDIR/.xdg.runtime
- # same as in tmpdir creation, ensure dir doesn't exist
- if [[ -h $XDG_RUNTIME_DIR ]] {
- unlink $XDG_RUNTIME_DIR 2>/dev/null
- } elif [[ -e $XDG_RUNTIME_DIR ]] {
- rm -rf $XDG_RUNTIME_DIR 2>/dev/null
+ if [[ -v XDG_RUNTIME_DIR ]] {
+ export XDG_RUNTIME_DIR
+ } else {
+ # make runtime dir in our session-specific tmpdir
+ export XDG_RUNTIME_DIR=$TMPDIR/.xdg.runtime
+ # same as in tmpdir creation, ensure dir doesn't exist
+ if [[ -h $XDG_RUNTIME_DIR ]] {
+ unlink $XDG_RUNTIME_DIR 2>/dev/null
+ } elif [[ -e $XDG_RUNTIME_DIR ]] {
+ rm -rf $XDG_RUNTIME_DIR 2>/dev/null
+ }
+ mkdir -m700 $XDG_RUNTIME_DIR 2>/dev/null
}
- mkdir -m700 $XDG_RUNTIME_DIR 2>/dev/null
# source user dirs after other vars
[[ -e $XDG_CONFIG_HOME/user-dirs.dirs ]] &&
### load site-specific
if [[ -f ${ZDOTDIR:-~}/.zprofile.local ]] { source ${ZDOTDIR:-~}/.zprofile.local }
-
-# vim: et sts=4 sw=4 ts=8 tw=79
## python
export PYTHONSTARTUP=${XDG_CONFIG_HOME:-~/.config}/pythonrc
## vim
-export VIMINIT='execute "source" ($XDG_CONFIG_HOME??($HOME."/.config"))."/vim/.vimrc"'
+export VIMINIT='let$MYVIMRC=($XDG_CONFIG_HOME??($HOME."/.config"))."/vim/.vimrc"|execute"source"$MYVIMRC'
## wayland/sway
# XXX: only do this if we're actually in wayland, but without a start script
export XDG_SESSION_TYPE=wayland
### load site-specific
if [[ -f ${ZDOTDIR:-~}/.zshrc.local ]] { source ${ZDOTDIR:-~}/.zshrc.local }
-
-# vim: et sts=4 sw=4 ts=8 tw=79
+#!/bin/zsh
+
prompt_arrows_help() {
cat << EOF
prompt arrows <right|2line> <normal> <prompt> <ssh> <urgent> <comment> <dir> <unwritable>
}
prompt_arrows_setup "$@"
-# vim: set et fenc=utf-8 ft=zsh sts=4 sw=4 ts=8 tw=0 :
find termux -mindepth 1 -maxdepth 1 | while read -r x; do l ".$x"; done
l '.termux/font.ttf' "$share/fonts/Dina-ttf/Dina.ttf"
fi
-
-# vim: sts=4 sw=4 et
+++ /dev/null
-background = #010812
-foreground = #798699
-cursor = #6408a4
-# black/grey
-color0 = #191c21
-color8 = #3b434e
-# red
-color1 = #d51d0a
-color9 = #f4321e
-# green
-color2 = #5dd50a
-color10 = #75f41e
-# yellow
-color3 = #d5820a
-color11 = #f49d1e
-# blue
-color4 = #0a5dd5
-color12 = #1e75f4
-# magenta
-color5 = #820ad5
-color13 = #9d1ef4
-# cyan
-color6 = #0ac2d5
-color14 = #1ee0f4
-# light grey/white
-color7 = #bcc2cc
-color15 = #e8ebee