Start Updating bashrc

Updating bashrc

(E)G|wma|avi|AVI|\ asf|vob|VOB|bin|dat|vcd|ps|pes|fli|viv|rm|ram|yuv|mov|MOV|qt|\ QT|wmv|mp3|MP3|ogg|OGG|ogm|OGM|mp4|MP4|wav|WAV|asx|ASX)' xine complete -f -o default -X '!

(ps|PS)' gs ghostview ps2pdf ps2ascii complete -f -o default -X \ '! (dvi|DVI)' dvips dvipdf xdvi dviselect dvitype complete -f -o default -X '! (pdf|PDF)' acroread pdf2ps complete -f -o default -X '!

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 .

sourcing bashrc only executes what is written in bashrc.

starting a new bash session inside the old is also not necessarily equal to a restart of bash, as the new process inherits the environment from the old.

For nearly two week straight I’ve been tweaking it, and today, I present to you this culmination of work: ############################################################################## # Codefined's ~/.bashrc File # ############################################################################## # A compiled list of commands to aid with everyday usage of bash. Merge/replace your bashrc file `mv this_file ~/.bashrc` # 3. = 0 ]; then echo \"$\"; else echo \"$\"; fi" # Throw it all together PS1="$$\h$ $\w$ \`$\` $$ " # Color for manpages export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' fi ############################################################################## # Command Aliases # ############################################################################## if [ "$enable_aliases" = true ] ; then # Make ls, dir, vdir and grep use colour if possible if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --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 some common ls parameters to other commands alias ll='ls -al F' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands.

Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $?

Click Here to receive this Complete Guide absolutely free. I actually tired creating this file in my local directory but it seems like it is not working. Each user can edit his own startup file without needed root privileges. If you specify a default in both /etc/profile and your user bash startup file then the user file takes precedence.