File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Configs/.config/zsh/conf.d/hyde Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ function _dedup_zsh_plugins {
2929 unset -f _dedup_zsh_plugins
3030 # Oh-my-zsh installation path
3131 zsh_paths=(
32- " $HOME /.oh-my-zsh"
33- " /usr/local/share/oh-my-zsh"
3432 " /usr/share/oh-my-zsh"
33+ " /usr/local/share/oh-my-zsh"
34+ " $HOME /.oh-my-zsh"
3535 )
3636 for zsh_path in " ${zsh_paths[@]} " ; do [[ -d $zsh_path ]] && export ZSH=$zsh_path && break ; done
3737 # Load Plugins
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ confDir="${XDG_CONFIG_HOME:-$HOME/.config}"
1313cacheDir=" ${XDG_CACHE_HOME:- $HOME / .cache} /hyde"
1414aurList=(" yay" " paru" )
1515shlList=(" zsh" " fish" )
16+ pacmanCmd=${cloneDir} /Configs/.local/lib/hyde/pm.sh
1617
1718export cloneDir
1819export confDir
@@ -48,7 +49,7 @@ chk_list() {
4849pkg_available () {
4950 local PkgIn=$1
5051
51- if pacman -Si " ${PkgIn} " & > /dev/null; then
52+ if ${pacmanCmd} query " ${PkgIn} " & > /dev/null; then
5253 return 0
5354 else
5455 return 1
@@ -59,7 +60,7 @@ aur_available() {
5960 local PkgIn=$1
6061
6162 # shellcheck disable=SC2154
62- if ${aurhlpr} -Si " ${PkgIn} " & > /dev/null; then
63+ if ${pacmanCmd} info " ${PkgIn} " & > /dev/null; then
6364 return 0
6465 else
6566 return 1
You can’t perform that action at this time.
0 commit comments