From 5d27d1f4a7f690d6185a84e82bafa05680333b0a Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Fri, 19 Aug 2022 16:25:10 -0300 Subject: [PATCH] Forgot bashrc --- configs/.bashrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configs/.bashrc diff --git a/configs/.bashrc b/configs/.bashrc new file mode 100644 index 0000000..ffa3bf7 --- /dev/null +++ b/configs/.bashrc @@ -0,0 +1,25 @@ +# /etc/skel/.bashrc +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. +if [[ $- != *i* ]] ; then + # Shell is non-interactive. Be done now! + return +fi + + +# Put your fun stuff here. + +alias reboot="loginctl reboot -i" +export PS1="\[$(tput bold)\]\[$(tput setaf 1)\]\[\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" +alias ls="ls --color" +LS_COLORS='di=1;35:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90:*.png=35:*.gif=36:*.jpg=35:*.c=92:*.jar=33:*.py=93:*.h=90:*.txt=94:*.doc=104:*.docx=104:*.odt=104:*.csv=102:*.xlsx=102:*.xlsm=102:*.rb=31:*.cpp=92:*.sh=92:*.html=96:*.zip=4;33:*.tar.gz=4;33:*.mp4=105:*.mp3=106' +export LS_COLORS +export HISTFILE="${XDG_STATE_HOME}"/bash/history