Compare commits

..

9 Commits

5 changed files with 25 additions and 18 deletions

View File

@@ -3,6 +3,11 @@ export PATH="${HOME}/.local/bin:${PATH}"
export LD_LIBRARY_PATH="${HOME}/.local/lib:${LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="${HOME}/.local/lib:${LD_LIBRARY_PATH}"
export PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig:${PKG_CONFIG_PATH}" export PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig:${PKG_CONFIG_PATH}"
# Make sure this is PATH
if [[ -d "${HOME}/.ghcup/bin" ]]; then
export PATH=":${HOME}/.ghcup/bin:${PATH}"
fi
# Because I use zsh to start graphical sessions # Because I use zsh to start graphical sessions
[[ -v ZSH_GRAPHICAL_LOGIN ]] || ZSH_GRAPHICAL_LOGIN=true [[ -v ZSH_GRAPHICAL_LOGIN ]] || ZSH_GRAPHICAL_LOGIN=true
if [[ -o login ]] && [[ "${ZSH_GRAPHICAL_LOGIN}" = 'true' ]] ; then if [[ -o login ]] && [[ "${ZSH_GRAPHICAL_LOGIN}" = 'true' ]] ; then

View File

@@ -289,7 +289,7 @@ compdef _bmrm bmrm
function __bm_precmd_hook { function __bm_precmd_hook {
# Auto reload # Auto reload
if [[ "${BM_AUTO_RELOAD}" == true ]] && if [[ "${BM_AUTO_RELOAD}" == true ]] && [[ -e "${BM_BOOKMARK_PATH}" ]] &&
(( ${__bm_last_read_time} < $(zstat +mtime "${BM_BOOKMARK_PATH}") )); then (( ${__bm_last_read_time} < $(zstat +mtime "${BM_BOOKMARK_PATH}") )); then
__bm_update_bookmark_list __bm_update_bookmark_list
fi fi

View File

@@ -28,6 +28,8 @@ function source_user_file {
fi fi
} }
# Mostly for setting $PATH before the GUI starts
source_user_file "local-early"
# Load user early init file # Load user early init file
source_user_file "early-init" source_user_file "early-init"
@@ -152,7 +154,7 @@ if cmd_exists clash; then
alias tp="clash put" alias tp="clash put"
alias trr="clash restore" alias trr="clash restore"
alias trl="clash list" alias trl="clash list"
alias tre="clash emtpy" alias tre="clash empty"
alias trm="clash empty" alias trm="clash empty"
elif cmd_exists trash-put; then elif cmd_exists trash-put; then
alias rm='echo "rm: I''m unsafe! Don''t use me."; false' alias rm='echo "rm: I''m unsafe! Don''t use me."; false'