small update

This commit is contained in:
fanyx 2023-05-31 09:56:12 +02:00
parent ae40d4bd0f
commit 9472c48a09
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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