fix: XDG home globally set
This commit is contained in:
parent
5a5330760c
commit
8a8f11d07e
16
.zshrc
16
.zshrc
@ -1,5 +1,13 @@
|
||||
#!/bin/zsh
|
||||
|
||||
###
|
||||
### Set global variables
|
||||
###
|
||||
|
||||
: ${XDG_CONFIG_HOME:=$HOME/.config}
|
||||
export XDG_CONFIG_HOME
|
||||
|
||||
|
||||
###
|
||||
### Zsh Configuration
|
||||
###
|
||||
@ -29,8 +37,6 @@ path=(
|
||||
$path)
|
||||
setopt nonullglob
|
||||
|
||||
#export LD_LIBRARY_PATH=$HOME/dev_local/lib
|
||||
|
||||
fpath=($fpath /usr/share/zsh/site-functions)
|
||||
|
||||
# Remove duplicates
|
||||
@ -213,7 +219,7 @@ alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
|
||||
|
||||
lg()
|
||||
{
|
||||
export LAZYGIT_NEW_DIR_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/lazygit/cd-on-quit_$$"
|
||||
export LAZYGIT_NEW_DIR_FILE="${XDG_CONFIG_HOME}/lazygit/cd-on-quit_$$"
|
||||
lazygit "$@"
|
||||
if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
|
||||
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
|
||||
@ -262,11 +268,11 @@ n()
|
||||
local -x GUI=1 # plugins: nuke, xdgdefault
|
||||
local -x NNN_ARCHIVE='\.(7z|bz2|cbz|cbr|gz|tar|tbz|tgz|xz|zip|zst)$'
|
||||
local -x NNN_BMS="d:~/Downloads;q:~/QubesIncoming"
|
||||
local -x NNN_OPENER="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins/nuke"
|
||||
local -x NNN_OPENER="${XDG_CONFIG_HOME}/nnn/plugins/nuke"
|
||||
local -x NNN_OPTS='ABeGo'
|
||||
local -x NNN_ORDER="t:$HOME/Downloads"
|
||||
local -x NNN_PLUG=${(j:;:)nnn_plug}
|
||||
local -x NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/cd-on-quit"
|
||||
local -x NNN_TMPFILE="${XDG_CONFIG_HOME}/nnn/cd-on-quit"
|
||||
|
||||
if (( ${+commands[fuse-archive]} )); then
|
||||
local -x NNN_ARCHMNT='fuse-archive'
|
||||
|
Loading…
Reference in New Issue
Block a user