summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/prompt2
-rwxr-xr-x.local/bin/xdg-open3
2 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/prompt b/.local/bin/prompt
index 90e3a17..0118ae8 100755
--- a/.local/bin/prompt
+++ b/.local/bin/prompt
@@ -1,7 +1,7 @@
#!/bin/sh
BRANCH=$(git branch --show-current 2>/dev/null)
BRANCH=$(test -d .git && test -n $BRANCH && echo "($BRANCH)")
-PROMPT="[$(hostname):$(basename "$PWD")$BRANCH]"
+PROMPT="$USER@$(hostname):$( test $PWD = $HOME && echo '~' || basename "$PWD")$BRANCH"
case $(id -u) in
0) echo "$PROMPT# " ;;
*) echo "$PROMPT$ " ;;
diff --git a/.local/bin/xdg-open b/.local/bin/xdg-open
index 206fb96..be0f8e1 100755
--- a/.local/bin/xdg-open
+++ b/.local/bin/xdg-open
@@ -1,8 +1,7 @@
#!/bin/sh
-# Courtesy of https://drewdevault.com/2019/12/30/dotfiles.html
case "${1%%:*}" in
http|https|*.pdf)
- exec qutebrowser "$1"
+ exec firefox "$1"
;;
mailto)
exec aerc "$1"