aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-06 10:15:30 -0300
committerEuAndreh <eu@euandre.org>2022-11-06 10:15:30 -0300
commit8d6aa327ba01b8551c4d23fb600bc578d6da2175 (patch)
tree3f6708e57a6f32d7b70e29c02f202d1d02defa62 /etc
parentetc/sh/rc: Remove ~/.bashrc symlink (diff)
downloaddotfiles-8d6aa327ba01b8551c4d23fb600bc578d6da2175.tar.gz
dotfiles-8d6aa327ba01b8551c4d23fb600bc578d6da2175.tar.xz
etc/sh/rc (PS1): Inline call to "vcs ps1"
Diffstat (limited to 'etc')
-rw-r--r--etc/sh/rc6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index d6a602f..95b0e2d 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -140,10 +140,6 @@ alias kal='khal calendar today `LANG=en.UTF-8 date +%A`'
# PS1
#
-repo_status() {
- vcs ps1
-}
-
error_marker() {
STATUS=$?
if [ "$STATUS" != 0 ]; then
@@ -224,7 +220,7 @@ in_nix_shell() {
fi
}
-PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``repo_status``guix_env``in_nix_shell`
+PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``vcs ps1``guix_env``in_nix_shell`
$ '