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