mirror of
https://github.com/notwa/rc
synced 2024-06-29 02:17:12 -07:00
14 lines
240 B
Bash
Executable File
14 lines
240 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# YES_ZSH
|
|
# YES_BASH
|
|
# NO_DASH
|
|
|
|
pause() {
|
|
[ -n "${ZSH_VERSION:-}" ] \
|
|
&& read -sk '?Press any key to continue
|
|
' || read -n1 -u 1 -sp 'Press any key to continue
|
|
'
|
|
}
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || pause "$@"
|