From f37de2a180f6b3babd25067d8945f431fd8bd0d3 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Fri, 20 Aug 2021 15:37:24 -0300 Subject: [PATCH] Port zsh prompt to bash --- home/bashrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 home/bashrc diff --git a/home/bashrc b/home/bashrc new file mode 100644 index 0000000..6bbed65 --- /dev/null +++ b/home/bashrc @@ -0,0 +1,19 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + + +export PS1='\e[1m\e[38;5;63m[\e[38;5;68m\u@\H \e[38;5;15m\w\e[38;5;63m]$\e[m ' + +# aliases: +source ~/dotfiles/aliases + +# reload with . +alias .="source ~/.bashrc" + +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi