Christian Fredrik Johnsen 76adade69a fix: print_shell_function(), use ${1:-} instead of $1, AND use echo \ setup instead of `echo
'`

1) If people are using bash with `set -u` (enable unset variable
   checking), then they will get an error if they run `pyenv` in the
   CLI under the current setup. To avoid any errors when no positional
   arguments, we use ${1:-} instead of $1.

2) We find that the script looks better when using:

```bash
echo \
'pyenv() {
  local command=${1:-}'
```

As opposed to:

```
echo 'pyenv() {
  local command=${1:-}'
```
2024-12-22 12:20:41 +01:00
..
2024-12-18 10:13:13 +03:00
2021-02-23 22:29:56 +02:00