swaying work

This commit is contained in:
ackman678
2020-05-10 22:22:24 -07:00
parent 6b3a0efc28
commit ca5ce3b2a6
5 changed files with 35 additions and 20 deletions

13
.bashrc
View File

@@ -5,6 +5,17 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# add from /etc/bash.bashrc defaultl with fix for alacritty window title bars
case ${TERM} in
xterm*|rxvt*|Eterm|alacritty|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
#customize prompt see https://wiki.archlinux.org/index.php/Bash/Prompt_customization
RED="\[$(tput setaf 1)\]"
YELLOW="\[$(tput setaf 3)\]"
@@ -12,7 +23,7 @@ LIGHTBLUE="\[$(tput setaf 4)\]"
BLUE="\[$(tput setaf 27)\]"
RESET="\[$(tput sgr0)\]"
#PS1="${BLUE}\u@\h \W>${RESET} "
PS1="${BLUE}\W>${RESET} "
PS1="${LIGHTBLUE}\W>${RESET} "
man() {
LESS_TERMCAP_md=$'\e[01;31m' \