mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
shell stuff for zed
This commit is contained in:
parent
1971d7f7d5
commit
8eaea782ab
2 changed files with 14 additions and 7 deletions
|
|
@ -461,4 +461,6 @@ def --wrapped jc [...arguments: string@"nu-complete jc"]: [any -> table, any ->
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
greeting
|
if $nu.is-interactive {
|
||||||
|
greeting
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,9 @@ in
|
||||||
config' = homeArgs.config;
|
config' = homeArgs.config;
|
||||||
nuExecCondition =
|
nuExecCondition =
|
||||||
if config.isDarwin then
|
if config.isDarwin then
|
||||||
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ]''
|
''
|
||||||
|
[[ $- == *i* ]] && [ -z "$skip" ] && [ -t 1 ]
|
||||||
|
''
|
||||||
else
|
else
|
||||||
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ] && [ -z "$SSH_TTY" ]'';
|
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ] && [ -z "$SSH_TTY" ]'';
|
||||||
in
|
in
|
||||||
|
|
@ -80,11 +82,14 @@ in
|
||||||
source ${config'.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
|
source ${config'.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
|
||||||
|
|
||||||
if ${nuExecCondition}; then
|
if ${nuExecCondition}; then
|
||||||
|
parent_cmd="$(ps -o command= -p "$PPID" 2>/dev/null || true)"
|
||||||
|
case "$parent_cmd" in
|
||||||
|
*"/Applications/Zed.app/Contents/MacOS/zed --printenv"*) return ;;
|
||||||
|
esac
|
||||||
SHELL='${lib.getExe <| lib.head config'.shellsByPriority}' exec "$SHELL"
|
SHELL='${lib.getExe <| lib.head config'.shellsByPriority}' exec "$SHELL"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue