oopsx 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/merr.js +8 -2
  2. package/package.json +1 -1
package/bin/merr.js CHANGED
@@ -52,7 +52,10 @@ program
52
52
  console.log(`
53
53
  __oopsx_precmd() {
54
54
  local exit_code=$?
55
- [[ $exit_code -ne 0 ]] && (oopsx play &>/dev/null &)
55
+ if [[ $exit_code -ne 0 ]]; then
56
+ oopsx play &>/dev/null &
57
+ disown 2>/dev/null
58
+ fi
56
59
  return $exit_code
57
60
  }
58
61
  precmd_functions+=(__oopsx_precmd)
@@ -61,7 +64,10 @@ precmd_functions+=(__oopsx_precmd)
61
64
  console.log(`
62
65
  __oopsx_prompt_command() {
63
66
  local exit_code=$?
64
- [[ $exit_code -ne 0 ]] && (oopsx play &>/dev/null &)
67
+ if [[ $exit_code -ne 0 ]]; then
68
+ oopsx play &>/dev/null &
69
+ disown 2>/dev/null
70
+ fi
65
71
  return $exit_code
66
72
  }
67
73
  PROMPT_COMMAND="__oopsx_prompt_command;\${PROMPT_COMMAND}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oopsx",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Play a meme sound when your terminal command fails",
5
5
  "type": "module",
6
6
  "bin": {