Skip to content

Commit

Permalink
fix: remove non-standard, non-helpful sleep call
Browse files Browse the repository at this point in the history
`sleep` takes integers

Signed-off-by: Lucas Larson <[email protected]>
  • Loading branch information
LucasLarson committed May 31, 2024
1 parent 63c888a commit 2700f40
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ cdp() {
cd_to="$(command pwd -P)"
if test "${cd_from-}" != "${cd_to-}"; then
printf -- 'moving from \342\200\230%s\342\200\231\n' "${cd_from-}"
command sleep 0.2
cd -- "${cd_to-}" || {
printf -- 'unable to perform this operation\n'
return 1
}
printf -- ' into \342\200\230%s\342\200\231\n' "${cd_to-}"
command sleep 0.2
else
printf -- 'already in unaliased directory '
printf -- '\342\200\230%s\342\200\231\n' "${cd_from-}"
Expand Down

0 comments on commit 2700f40

Please sign in to comment.