aboutsummaryrefslogtreecommitdiffstats
path: root/.zprofile
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2023-05-23 09:15:04 +0200
committerDavid Runge <dave@sleepmap.de>2023-05-23 09:15:04 +0200
commitd59b574b67e36ec5420cfedcbf489d9184b3a691 (patch)
tree3ad0aadc6f3a3166d8ccb99053b8260d8258f647 /.zprofile
parent2fc5cf9f7eece3d993c3eba526ba5d04819b81ac (diff)
downloaddotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.gz
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.bz2
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.xz
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.zip
zsh: move configs to XDG_CONFIG_HOME with the help of ZDOTDIR
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile51
1 files changed, 0 insertions, 51 deletions
diff --git a/.zprofile b/.zprofile
deleted file mode 100644
index 4ec678f..0000000
--- a/.zprofile
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# Executes commands at login pre-zshrc.
-
-#
-# Paths
-#
-
-# Ensure path arrays do not contain duplicates.
-typeset -gU cdpath fpath mailpath path
-
-# Set the the list of directories that cd searches.
-# cdpath=(
-# $cdpath
-# )
-
-# Set the list of directories that Zsh searches for programs.
-path=(
- /usr/local/{bin,sbin}
- $path
-)
-
-
-#
-# Temporary Files
-#
-
-if [[ ! -d "$TMPDIR" ]]; then
- if [[ $USER == "root" ]]; then
- export TMPDIR="/tmp/$USER"
- else
- export TMPDIR="$XDG_RUNTIME_DIR"
- fi
- mkdir -p -m 700 "$TMPDIR"
-fi
-
-TMPPREFIX="${TMPDIR%/}/zsh"
-if [[ ! -d "$TMPPREFIX" ]]; then
- mkdir -p "$TMPPREFIX"
-fi
-
-
-[[ "$TTY" == /dev/tty* ]] || return 0
-
-if command -v systemctl > /dev/null; then
- export $(systemctl --user show-environment)
- if [[ -z $DISPLAY && "$TTY" == "/dev/tty1" ]]; then
- systemd-cat -t sway sway
- systemctl --user stop sway-session.target
- systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
- fi
-fi