Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Nov 17, 2023
1 parent 5e4795b commit f24bd74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.shellcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ jobs:
sudo apt-get update && sudo apt-get --yes install zsh libatomic1
chmod u+x /usr/local/bin/pkgx
shell: sh

- run: |
alias x="echo hi"
eval "$(pkgx --shellcode)"
Expand Down
8 changes: 4 additions & 4 deletions src/modes/shellcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function() {
}
if ! type x >/dev/null 2>&1; then
x() {
eval 'x() {
case $1 in
"")
if [ -f "${tmp}/shellcode/x.$$" ]; then
Expand All @@ -62,7 +62,7 @@ export default function() {
*)
command pkgx -- "$@";;
esac
}
}'
fi
env() {
Expand All @@ -80,8 +80,8 @@ export default function() {
done
if [ $# -eq 0 ]; then
command env
fi
if type _pkgx_reset >/dev/null 2>&1; then
return
elif type _pkgx_reset >/dev/null 2>&1; then
_pkgx_reset
fi
eval "$(command pkgx --internal.use "$@")"
Expand Down

0 comments on commit f24bd74

Please sign in to comment.