diff --git a/bashrc b/bashrc index 68a449e..fb3d0f5 100644 --- a/bashrc +++ b/bashrc @@ -2,7 +2,7 @@ # ~/.bashrc # byMasterKTO -# NOTE if .bashrc is not sourced at login, add `source ~/.bashrc` to ~/.profile +# NOTE if .bashrc is not sourced at login, add `[[ -f ~/.bashrc ]] && . ~/.bashrc` to ~/.profile # If not running interactively, don't do anything [[ $- != *i* ]] && return @@ -45,6 +45,10 @@ elif [[ $system == "OpenBSD" ]]; then C_USER="\[$(tput setaf 19 19 19)\]" C_ROOT="\[$(tput setab 1 1 1)\]" C_OBSD="\[$(tput setaf 11 11 11)\]" +elif [[ $system == "FreeBSD" ]]; then + C_USER="\[$(tput setaf 19 19 19)\]" + C_ROOT="\[$(tput setab 1 1 1)\]" + C_OBSD="\[$(tput setaf 124 124 124)\]" fi # user @@ -72,6 +76,10 @@ elif [[ $system == "OpenBSD" ]]; then # OpenBSD: yellow COLOR=$C_BOLD$C_OBSD BSD="$C_BOLD(BSD) $C_RESET" +elif [[ $system == "FreeBSD" ]]; then + # FreeBSD: red + COLOR=$C_BOLD$C_OBSD + BSD="$C_BOLD(BSD) $C_RESET" fi # virtualization @@ -118,7 +126,7 @@ if [[ $system == "Linux" ]]; then alias ll='ls -lhX' alias la='ls -lahX' alias dh='df -h' -elif [[ $system == "OpenBSD" ]]; then +elif [[ $system == "OpenBSD" || $system == "FreeBSD" ]]; then alias ll='ls -lh' alias la='ls -lah' alias dh='df -h'