fish: fix sourcing errors on ssh servers

This commit is contained in:
2025-12-06 18:13:11 +01:00
parent b4e8dcd75a
commit ed5688306b
3 changed files with 14 additions and 2 deletions

View File

@@ -103,5 +103,15 @@ if type -q git
if type -q wl-paste
alias gc="git clone \$(wl-paste)"
if type -q idea
function pingo
cd "$HOME/Repositories/PGdP" || return 1
set -l repo (wl-paste)
git clone $repo || return 1
set -l repo_name (basename $repo .git)
nohup idea $repo_name > /dev/null 2>&1 & disown
end
end
end
end

View File

@@ -1,4 +1,4 @@
if test $XDG_CURRENT_DESKTOP = "niri"
if test -n "$XDG_CURRENT_DESKTOP"; and test "$XDG_CURRENT_DESKTOP" = "niri"
set -l env_config "$HOME/.config/niri/config/envs.kdl"
if test -f "$env_config"