oopsx 1.4.0 → 1.5.1

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.
package/README.md CHANGED
@@ -12,7 +12,15 @@ Restart your terminal. Every failed command now plays a sound.
12
12
 
13
13
  ## Custom sound
14
14
 
15
- Pick any sound from [myinstants.com](https://www.myinstants.com) and set it as your error sound:
15
+ 1. Go to [myinstants.com](https://www.myinstants.com) and search for any meme sound
16
+ 2. Open the sound page and copy the URL from your browser's address bar
17
+ 3. Run:
18
+
19
+ ```bash
20
+ oopsx instant <paste-url-here>
21
+ ```
22
+
23
+ Example:
16
24
 
17
25
  ```bash
18
26
  oopsx instant https://www.myinstants.com/en/instant/bruh-sound-effect-26614/
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.1",
4
4
  "description": "Play a meme sound when your terminal command fails",
5
5
  "type": "module",
6
6
  "bin": {