aboutsummaryrefslogtreecommitdiff
path: root/zprofile
diff options
context:
space:
mode:
authorryo <ryo@nopwd.lol>2024-10-31 17:08:48 +0000
committerryo <ryo@nopwd.lol>2024-10-31 17:08:48 +0000
commit709542f2011784e2da48405a0972ee46705033b8 (patch)
tree43d9a54e8055b4d91d1f659b757d33a2cb1d060c /zprofile
parentcc6d6fcfc6e8403e87dae9f092e61f0edf8e3cc6 (diff)
Fixed: major bugs and bad file names
Diffstat (limited to 'zprofile')
-rw-r--r--zprofile24
1 files changed, 9 insertions, 15 deletions
diff --git a/zprofile b/zprofile
index 26d6d04..c1099ad 100644
--- a/zprofile
+++ b/zprofile
@@ -1,6 +1,6 @@
#!/usr/bin/env dash
-# Ryo's zsh profile
+# Ryo zsh profile
# https://ryo.nopwd.lol
# version: alpha
#
@@ -8,20 +8,18 @@
# https://github.com/lukesmithxyz/voidrice
-# Add all directories in `~/.local/bin` to $PATH
-export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"
-
-unsetopt PROMPT_SP 2>/dev/null
-
-# Default programs:
+# default programs:
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
+export PAGER=less
+export MANPAGER='nvim +Man!'
-# ~/ Clean-up:
+# ~/ clean-up:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.local/cache"
+export PATH=$HOME/.local/bin:$PATH
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
@@ -37,7 +35,7 @@ export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
export NODE_PATH="$XDG_DATA_HOME/node_modules"
-# Other program settings:
+# other program settings:
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
export LESS="R"
export LESS_TERMCAP_mb="$(printf '%b' '')"
@@ -50,15 +48,11 @@ export LESS_TERMCAP_ue="$(printf '%b' '')"
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
export MOZ_USE_XINPUT2=1
export _JAVA_AWT_WM_NONREPARENTING=1
-export MANPAGER='nvim +Man!'
-export PAGER=less
export WINEDEBUG="fixme-all"
export C_INCLUDE_PATH=$HOME/.local/include
export LD_LIBRARY_PATH=$HOME/.local/lib
export LIBRARY_PATH=$HOME/.local/lib
export MANPATH=$XDG_DATA_HOME/man:
-# Run startx only in tty1
-if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
- startx
-fi
+# run startx only in tty1
+[ "$(tty)" = "/dev/tty1" ] && startx