Skip to content

Commit

Permalink
Allow cd . to work in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 14, 2023
1 parent 3772c4b commit ac30a24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app.magic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ export default function(self: Path, shell?: string) {
return undent`
cd() {
builtin cd "$@" || return
if [ "$OLDPWD" != "$PWD" ]; then
source <("${d}"/tea +tea.xyz/magic -Esk --chaste env)
fi
source <("${d}"/tea +tea.xyz/magic -Esk --chaste env)
}
if [[ "$PATH" != *"$HOME/.local/bin"* ]]; then
Expand Down

0 comments on commit ac30a24

Please sign in to comment.