summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-06-09 18:34:27 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-06-09 18:34:27 +0200
commit79eff7c7dceec168cdeb23c894df43bff4c17d13 (patch)
tree3e79588f5941a5b8d4b1470893eb43173a1fe835 /.local
parent566072896f894e8e49e84bf15781ed6727baf0c2 (diff)
Update prompt. Switch to firefox.
Diffstat (limited to '.local')
-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"