diff options
| author | Simon <vesspa0330@gmail.com> | 2024-11-13 21:34:25 -0500 |
|---|---|---|
| committer | Simon <vesspa0330@gmail.com> | 2024-11-13 21:34:25 -0500 |
| commit | 137e40df685114f259f32f9a428182498a60056c (patch) | |
| tree | 0154d8cd374a3ff2e02f64c08b3e5b03d51d5c35 /.bashrc | |
| parent | b2a39581578f5c5295f7920f0366fde9f8f325a3 (diff) | |
colors updated
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -0,0 +1,53 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ "$color_prompt" = yes ]; then + PS1='\[\033[0;37m\]--[\t]--\n\u in \[\033[01;32m\]\w\[\033[0;37m\]\$\[\033[0;00m\] ' +else + PS1='[\u@\h \W]\$ ' +fi +unset color_prompt force_color_prompt + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias l='ls' + alias ls='ls -l --color=auto' + alias la='ls -la --color=auto' + alias grep='grep --color=auto' + + + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + #alias grep='grep --color=auto' + #alias fgrep='fgrep --color=auto' + #alias egrep='egrep --color=auto' +fi + +alias rm='rm -i' + +export PATH=$PATH:/home/slime/Scripts + +# Created by `pipx` on 2024-09-02 22:36:15 +export PATH="$PATH:/home/slime/.local/bin" |
