Port zsh prompt to bash

This commit is contained in:
Augusto Gunsch 2021-08-20 15:37:24 -03:00
parent cd27268915
commit f37de2a180
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 19 additions and 0 deletions

19
home/bashrc Normal file
View File

@ -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