summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-23 21:14:16 -0700
committerxyz <gky44px1999@gmail.com>2021-09-23 21:14:16 -0700
commitfdcce350a48bc6de17ad2d4a68b361019aaa4a09 (patch)
treea712967637e147b05c6701545752244ee59aaed0
parent33891b84d7760349b8ecf0a77ded20c2f304df38 (diff)
o, xdg-open wrapper
-rw-r--r--.bashrc1
-rwxr-xr-x.local/bin/o6
2 files changed, 6 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index cbf6af2f..7a1c49a9 100644
--- a/.bashrc
+++ b/.bashrc
@@ -36,7 +36,6 @@ alias sdcv='sdcv --color'
alias ap='sudo ampy -p /dev/ttyACM0'
alias g=git
alias ll='ls -lAh --color=auto --group-directories-first'
-alias o=xdg-open
alias tp='sudo tio /dev/ttyACM0'
alias v='$EDITOR'
alias vc='$EDITOR "$XDG_DOCUMENTS_DIR/notes/computer/command-line_notes.md"'
diff --git a/.local/bin/o b/.local/bin/o
new file mode 100755
index 00000000..6bf467a9
--- /dev/null
+++ b/.local/bin/o
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# I don't care about errors, I don't want to handle errors, just shut up please.
+# I don't understand nohup, may be useful in the future
+# https://wiki.archlinux.org/title/default_applications
+xdg-open "$@" 0<&- >&- 2>&1 &