diff options
| author | xengineering <me@xengineering.eu> | 2022-10-06 20:14:41 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2022-10-06 20:14:41 +0200 |
| commit | 13a5f7c16e9d370e1f486b7cd0da3d69dd6df00d (patch) | |
| tree | b8248f81b3eaa38053fbf233331187db9da61e2b | |
| parent | 6da9bf8bb82b1cbd84b71111bd6bffd6efe77f28 (diff) | |
| download | dotfiles-13a5f7c16e9d370e1f486b7cd0da3d69dd6df00d.tar dotfiles-13a5f7c16e9d370e1f486b7cd0da3d69dd6df00d.tar.zst dotfiles-13a5f7c16e9d370e1f486b7cd0da3d69dd6df00d.zip | |
Re-introduce open alias
This is a combination of nohup and xdg-open to open files in a more
independent process.
Left to do: How to detach it from the shell so that it does not show up
in `jobs`?
| -rw-r--r-- | .bashrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -35,6 +35,8 @@ if command -v pacman > /dev/null # ugly hack to detect Arch Linux then alias t="todo.sh" fi +function my_xdg_open() { nohup xdg-open "$1" > /dev/null 2>&1 & } +alias open=my_xdg_open # extend PATH by custom scripts (location based on XDG) |
