bashrc: New pink and purple $PS1 👀
Removed redundant $PS1 from .profile.mac
This commit is contained in:
parent
d8413f894f
commit
06ff5311bd
2 changed files with 13 additions and 2 deletions
13
.bashrc
13
.bashrc
|
|
@ -1,5 +1,17 @@
|
||||||
#!/usr/bin/env bash
|
#!/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 '*'"$@"'*'; }
|
simplefind() { find . -iname '*'"$@"'*'; }
|
||||||
simpleplay() {
|
simpleplay() {
|
||||||
find . -iname '*'"$@"'*' -print0 \
|
find . -iname '*'"$@"'*' -print0 \
|
||||||
|
|
@ -11,6 +23,7 @@ command -v uname >/dev/null &&
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
Linux)
|
Linux)
|
||||||
alias ls='ls --color'
|
alias ls='ls --color'
|
||||||
|
[ -f /etc/os-release ] && . /etc/os-release
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
command -v port >/dev/null && . /opt/local/etc/bashrc.mac
|
command -v port >/dev/null && . /opt/local/etc/bashrc.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.
|
# Finished adapting your PATH environment variable for use with MacPorts.
|
||||||
#[%MACPORTS%]#
|
#[%MACPORTS%]#
|
||||||
|
|
||||||
PS1='\h:\W \u\$ '
|
|
||||||
|
|
||||||
[ $(uname) == 'Darwin' ] &&
|
[ $(uname) == 'Darwin' ] &&
|
||||||
command -v port >/dev/null &&
|
command -v port >/dev/null &&
|
||||||
command -v uname >/dev/null
|
command -v uname >/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue