small update
This commit is contained in:
parent
ae40d4bd0f
commit
9472c48a09
|
@ -11,7 +11,7 @@ alias cs="vim ~/.config/sxhkd/sxhkdrc"
|
||||||
# use xtools instead
|
# use xtools instead
|
||||||
# alias xin="doas xbps-install -S"
|
# alias xin="doas xbps-install -S"
|
||||||
alias xup="xi -Su"
|
alias xup="xi -Su"
|
||||||
alias xun="xi -Sun | awk '{print \$2 \"\t- \" \$1}' | sed \"s/-\([^- ]*_.*\)/ -> \1/\""
|
alias xun="xi -S && xi -un | awk '{print \$2 \"\t- \" \$1}' | sed \"s/-\([^- ]*_.*\)/ -> \1/\""
|
||||||
|
|
||||||
complete -F _xbps_complete xi
|
complete -F _xbps_complete xi
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ SVDIR = ${SVDIR}
|
||||||
|
|
||||||
!
|
!
|
||||||
|
|
||||||
# symlinks
|
# symlink dirs
|
||||||
|
|
||||||
ln -sfn "${DOTFILES_HOME}"/.cache "${XDG_CACHE_HOME}"
|
ln -sfn "${DOTFILES_HOME}"/.cache "${XDG_CACHE_HOME}"
|
||||||
ln -sfn "${DOTFILES_HOME}"/.config "${XDG_CONFIG_HOME}"
|
ln -sfn "${DOTFILES_HOME}"/.config "${XDG_CONFIG_HOME}"
|
||||||
|
@ -29,6 +29,16 @@ ln -sfn "${DOTFILES_HOME}"/.bin "${BIN_HOME}"
|
||||||
ln -sfn "${DOTFILES_HOME}"/.config/sv "${SV_HOME}"
|
ln -sfn "${DOTFILES_HOME}"/.config/sv "${SV_HOME}"
|
||||||
ln -sfn "${DOTFILES_HOME}"/sv "${SVDIR}"
|
ln -sfn "${DOTFILES_HOME}"/sv "${SVDIR}"
|
||||||
|
|
||||||
|
# symlink files
|
||||||
|
|
||||||
|
_ln_home() {
|
||||||
|
[ -z "$2" ] && target="$HOME/$1" || target="$HOME/$2"
|
||||||
|
source="$PWD/$1"
|
||||||
|
ln -sfn "$source" "$target"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# environment
|
# environment
|
||||||
|
|
||||||
echo "${HOME}" >"${XDG_DATA_HOME}"/env/HOME
|
echo "${HOME}" >"${XDG_DATA_HOME}"/env/HOME
|
||||||
|
@ -37,3 +47,4 @@ echo "${XDG_CONFIG_HOME}" >"${XDG_DATA_HOME}"/env/XDG_CONFIG_HOME
|
||||||
echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME
|
echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME
|
||||||
echo "${SVDIR}" >"${SVDIR}"/env/SVDIR
|
echo "${SVDIR}" >"${SVDIR}"/env/SVDIR
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue