From 06ff5311bd1312eba3173aa8c99672ae8af5c86f Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Sat, 28 Sep 2024 12:18:10 -0500 Subject: [PATCH] =?UTF-8?q?bashrc:=20New=20pink=20and=20purple=20$PS1=20?= =?UTF-8?q?=F0=9F=91=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed redundant $PS1 from .profile.mac --- .bashrc | 13 +++++++++++++ .profile.mac | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index fa9897c..9bfa9ef 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,17 @@ #!/usr/bin/env bash +HISTSIZE=10000 +HISTFILESIZE=900000 + +case ${TERM} in + xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty*) + PS1='\h:\[\033[38;5;219m\]\W\[\033[00m\] \[\033[01;35m\]\u\[\033[00m\]\$ ' + ;; + *) + PS1='\h:\W \u\$ ' + ;; +esac + simplefind() { find . -iname '*'"$@"'*'; } simpleplay() { find . -iname '*'"$@"'*' -print0 \ @@ -11,6 +23,7 @@ command -v uname >/dev/null && case $(uname) in Linux) alias ls='ls --color' + [ -f /etc/os-release ] && . /etc/os-release ;; Darwin) command -v port >/dev/null && . /opt/local/etc/bashrc.mac diff --git a/.profile.mac b/.profile.mac index 3c0b1af..43016e9 100644 --- a/.profile.mac +++ b/.profile.mac @@ -4,8 +4,6 @@ export PATH="$HOME/Library/Python/3.11/bin:$HOME/perl5/bin:$HOME/.local/bin:$HOM # Finished adapting your PATH environment variable for use with MacPorts. #[%MACPORTS%]# -PS1='\h:\W \u\$ ' - [ $(uname) == 'Darwin' ] && command -v port >/dev/null && command -v uname >/dev/null