diff options
author | EuAndreh <eu@euandre.org> | 2022-05-12 09:17:24 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-12 09:17:24 -0300 |
commit | 102a21e1aa8bccf6a74f29d838dd058153e11cee (patch) | |
tree | ecea770a734ef66f82f407cd86f5890c2ebcc83a | |
parent | .local/bin/brightness: Add working version (diff) | |
download | dotfiles-102a21e1aa8bccf6a74f29d838dd058153e11cee.tar.gz dotfiles-102a21e1aa8bccf6a74f29d838dd058153e11cee.tar.xz |
.local/bin/open: Use "cd + pwd" over "realpath" to preserve symlink in paths
-rwxr-xr-x | .local/bin/open | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/open b/.local/bin/open index 04a346b..df1ad56 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -93,7 +93,7 @@ for f in "$@"; do alot compose "$f" ;; *) - DIR="$(realpath -- "$(dirname -- "$0")")" + DIR="$(cd -- "$(dirname -- "$0")"; pwd)" CMD="$(without-env PATH "$DIR" -- command -v xdg-open)" "$CMD" "$f" ;; |