Compare commits
2
Commits
874a823d1e
...
711da8058c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
711da8058c | ||
|
|
b0853dc5dd |
No files matched your search
@@ -75,6 +75,12 @@ function update_others {
|
|||||||
echo "-- CODEX"
|
echo "-- CODEX"
|
||||||
codex update
|
codex update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -x "$(command -v pi)" ]; then
|
||||||
|
echo "-- PI Agent"
|
||||||
|
pi update
|
||||||
|
pi update --extensions
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $* == *--help* ]]; then
|
if [[ $* == *--help* ]]; then
|
||||||
|
|||||||
+8
-3
@@ -28,9 +28,14 @@ if (( $+commands[go] )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Use safe wrappers after ~/.local/bin has been added to PATH.
|
# Use safe wrappers after ~/.local/bin has been added to PATH.
|
||||||
(( $+commands[safecp] )) && alias cp=safecp
|
# Agent shells: </dev/null makes the prompt decline (exit 1) instead of blocking.
|
||||||
(( $+commands[safemv] )) && alias mv=safemv
|
if [[ -n ${CLAUDECODE:-} || -n ${CODEX_SHELL:-} ]]; then
|
||||||
(( $+commands[safescp] )) && alias scp=safescp
|
_safe_redir=' </dev/null'
|
||||||
|
fi
|
||||||
|
(( $+commands[safecp] )) && alias cp="safecp${_safe_redir:-}"
|
||||||
|
(( $+commands[safemv] )) && alias mv="safemv${_safe_redir:-}"
|
||||||
|
(( $+commands[safescp] )) && alias scp="safescp${_safe_redir:-}"
|
||||||
|
unset _safe_redir
|
||||||
|
|
||||||
if [[ -f ~/.ssh/sudo_key ]]; then
|
if [[ -f ~/.ssh/sudo_key ]]; then
|
||||||
[[ -e /tmp/sudo-agent.sock ]] || ssh-agent -a /tmp/sudo-agent.sock &>/dev/null
|
[[ -e /tmp/sudo-agent.sock ]] || ssh-agent -a /tmp/sudo-agent.sock &>/dev/null
|
||||||
|
|||||||
Reference in new issue
Block a user