Skip to content

Commit

Permalink
zsh: Use system ls bin in gcl()
Browse files Browse the repository at this point in the history
It broke with `alias ls=lsd` because `lsd` doesn't detect that output is going to a pipe like `ls`.
`lsd`'s behavior is discussed in lsd-rs/lsd#1052.
This should let us avoid such further bugs.
  • Loading branch information
jody-frankowski committed Jun 21, 2024
1 parent 2bbf790 commit 8d97005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/.zshrc.d/functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ gcl () {
if git clone --recursive "$@" ; then
# cd into the last modified directory. This is simpler than trying to parse git arguments and
# their order.
cd "$(ls -t | head -n1)"
cd "$(\ls -t | head -n1)"
fi
}

Expand Down

0 comments on commit 8d97005

Please sign in to comment.