dotties/.bashrc

43 lines
944 B
Bash
Raw Normal View History

#!/usr/bin/env bash
for af in "$HOME/.aliases"/*; do
. "$af"
done
HISTSIZE=10000
HISTFILESIZE=900000
case ${TERM} in
2025-02-18 23:49:50 -06:00
xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty*|tmux-256color|linux)
2024-10-01 11:38:10 -05:00
PS1='\[\033]2;\h:\W \u\007\]\h:\[\033[38;5;219m\]\W\[\033[00m\] \[\033[01;35m\]\u\[\033[00m\]\$ '
;;
*)
PS1='\h:\W \u\$ '
;;
esac
2023-11-14 19:23:52 -06:00
simplefind() { find . -iname '*'"$@"'*'; }
simpleplay() {
find . -iname '*'"$@"'*' -print0 \
| xargs -0 mpv --no-audio-display \
;
}
2024-04-25 06:52:21 +00:00
command -v uname >/dev/null &&
case $(uname) in
2024-06-19 22:48:43 -05:00
Linux)
alias ls='ls --color'
[ -z "$ID" ] && [ -f /etc/os-release ] && . /etc/os-release
;;
2024-04-25 06:52:21 +00:00
Darwin)
command -v port >/dev/null && . /opt/local/etc/bashrc.mac
;;
FreeBSD)
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \
&& . /usr/local/share/bash-completion/bash_completion.sh
2024-04-25 07:42:47 +00:00
. "$HOME/.bashrc.freebsd"
2024-04-25 06:52:21 +00:00
;;
esac \
;