Software - Support > Other

Accidently overwrote my .bashrc file

(1/1)

asimov:
Thanks! That was exactly what I needed.

firenice03:
Copied fom my VM...



cat .bashrc

--- Code: ---# If not running interactively, don't do anything
[[ $- == *i* ]] || return


# enable bash completion in interactive shells
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi


alias usage='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
alias ls="ls --color"


# Powerline
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
    source /usr/share/powerline/bindings/bash/powerline.sh
fi


# Linux Lite Custom Terminal
LLVER=$(awk '{print}' /etc/llver)


echo -e "Welcome to $LLVER ${USER}"
echo " "
date "+%A %d %B %Y, %T"
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
echo "Support - https://www.linuxliteos.com/forums/ (Right click, Open Link)"
echo " "
--- End code ---

asimov:
Accidentality overwrote my .bashrc file. I have re-made some of it however not everything. I could not find a copy of the source bashrc file from linux lite.
Would anyone be able to link me, or paste below the text from their bashrc file.
Thanks!

Navigation

[0] Message Index

Go to full version