dblume commited on 2022-05-20 20:37:25
Showing 1 changed files, with 2 additions and 7 deletions.
| ... | ... |
@@ -118,13 +118,8 @@ case "$-" in |
| 118 | 118 |
stty ixoff # enable sending (to app) of start/stop characters |
| 119 | 119 |
stty ixany # let any character restart output, not only start character |
| 120 | 120 |
|
| 121 |
- # set CDPATH |
|
| 122 |
- # Don't use export. Only POSIX needs it to start with ".:" |
|
| 123 |
- # This may get appended to in .localrc |
|
| 124 |
- CDPATH=$HOME |
|
| 125 |
- case :$SHELLOPTS: in |
|
| 126 |
- *:posix:*) CDPATH=.:$CDPATH ;; |
|
| 127 |
- esac |
|
| 121 |
+ # Don't use export for CDPATH. This may get appended to in .localrc too. |
|
| 122 |
+ CDPATH=.:$HOME |
|
| 128 | 123 |
|
| 129 | 124 |
;; |
| 130 | 125 |
esac |
| 131 | 126 |