From 3e24aed2041d74503dc22dbfcc64ebd4a68b04bc Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 25 Nov 2023 22:25:03 -0600 Subject: change tabs to spaces and clean up wording --- zsh/zprofile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile index 79e87c5..2f58046 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -7,7 +7,7 @@ export BROWSER='launch firefox' export SUDO='doas' # Use sudo=${SUDO-sudo} -[ $EUID = 0 ] && export SUDO='' # When running as root, don't use sudo +[ $EUID = 0 ] && export SUDO='' # When running as root, don't use sudo # Make programs follow the XDG base directory specification export XDG_CACHE_HOME="$HOME/.cache" @@ -22,7 +22,7 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config" export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config" export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" -export X11CONFIG="$XDG_CONFIG_HOME/x11" # Used for X11 scripts +export X11CONFIG="$XDG_CONFIG_HOME/x11" # Used for X11 scripts export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export XDG_DATA_HOME="$HOME/.local/share" @@ -34,11 +34,11 @@ export PYTHONUSERBASE="$XDG_DATA_HOME/python" export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" -export LESSHISTFILE='-' # Disable this, but it would be considered a state file -export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file +export LESSHISTFILE='-' # Disable this, but it would be considered a state file +export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file # Path -for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs +for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs export PATH="$HOME/.local/opt:$PATH" export PATH="$CARGO_HOME/bin:$PATH" export PATH="$PYTHONUSERBASE/bin:$PATH" @@ -48,7 +48,7 @@ export QT_QPA_PLATFORMTHEME='qt5ct' # Misc Zsh setup mkdir -p "$(dirname "$ZHISTFILE")" -source "$ZDOTDIR/profiles/zprofile.$HOST" 2>/dev/null # Source additional host-specific profiles +source "$ZDOTDIR/profiles/zprofile.$HOST" 2>/dev/null # Source additional host-specific profiles # Autostart X after login [ -z $DISPLAY ] && [[ $UID != 0 ]] && [[ $TTY =~ /dev/tty(1|C0) ]] && startx "$X11CONFIG/xinitrc" -- cgit v1.2.3 From ad081ca8b6253f049e29480d5b4b33f00a9c626f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:10:04 -0600 Subject: create zhistory directory --- zsh/zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile index 2f58046..59b1f94 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -2,7 +2,7 @@ # Default programs export EDITOR='nvim' -export TERMINAL='st' +export TERMINAL='alacritty' export BROWSER='launch firefox' export SUDO='doas' @@ -36,6 +36,7 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" export LESSHISTFILE='-' # Disable this, but it would be considered a state file export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file +mkdir -p "$(dirname "$ZHISTFILE")" # Path for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs -- cgit v1.2.3 From 778c441b0a91b210c51bd0ef5c269e30de1675f7 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:57:45 -0600 Subject: zprofile fixed --- zsh/zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile index 59b1f94..fc9911e 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -36,9 +36,9 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" export LESSHISTFILE='-' # Disable this, but it would be considered a state file export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file -mkdir -p "$(dirname "$ZHISTFILE")" # Path +setopt nullglob # Set in case .local/bin doesn't exist for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs export PATH="$HOME/.local/opt:$PATH" export PATH="$CARGO_HOME/bin:$PATH" -- cgit v1.2.3