bugfixing..
This commit is contained in:
parent
22471d7e51
commit
82fc4a44cc
1 changed files with 3 additions and 1 deletions
|
@ -18,10 +18,12 @@ source $HOME/.config/fish/functions/c_fisher.fish
|
||||||
set -p EDITOR (which nvim)
|
set -p EDITOR (which nvim)
|
||||||
|
|
||||||
# ─< check for sudo/root >──────────────────────────────────────────────────────────────────
|
# ─< check for sudo/root >──────────────────────────────────────────────────────────────────
|
||||||
if [ $USER = root ]
|
if [ $USER = "root" ]
|
||||||
set sudo ""
|
set sudo ""
|
||||||
else
|
else
|
||||||
|
if command -v sudo >/dev/null 2>&1
|
||||||
set sudo "sudo"
|
set sudo "sudo"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ─────────────────────────< START | distro/packagemanger detection >─────────────────────────
|
# ─────────────────────────< START | distro/packagemanger detection >─────────────────────────
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue