diff --git a/.aliases b/.aliases index 1d879d7..0c30add 100644 --- a/.aliases +++ b/.aliases @@ -17,10 +17,6 @@ hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compa hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash steam 2>/dev/null && alias steam='find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete; steam' -for name in 'thunar' 'pcmanfm'; do - hash "$name" 2>/dev/null && alias xplorer="$name" -done - if hash chromium 2>/dev/null; then chromium-tor() { killall chromium diff --git a/bin/xplorer b/bin/xplorer new file mode 100755 index 0000000..1907b3c --- /dev/null +++ b/bin/xplorer @@ -0,0 +1,11 @@ +#!/bin/sh + +set -euo pipefail +IFS=$'\n\t' + +for name in 'pcmanfm' 'thunar'; do + if hash "$name" 2>/dev/null; then + "$name" + break + fi +done