{"id":19,"date":"2008-05-13T10:35:17","date_gmt":"2008-05-13T10:35:17","guid":{"rendered":"http:\/\/www.gurnaik.com\/blog\/?p=19"},"modified":"2008-05-13T10:36:23","modified_gmt":"2008-05-13T10:36:23","slug":"bashrc-file","status":"publish","type":"post","link":"https:\/\/www.gurnaik.com\/blog\/2008\/05\/13\/bashrc-file\/","title":{"rendered":".bashrc file"},"content":{"rendered":"<p>My default .bashrc file. This is taken from cygwin.# base-files version 3.7-1<\/p>\n<blockquote><p>\n# To pick up the latest recommended .bashrc content,<br \/>\n# look in \/etc\/defaults\/etc\/skel\/.bashrc<\/p>\n<p># Modifying \/etc\/skel\/.bashrc directly will prevent<br \/>\n# setup from updating it.<\/p>\n<p># The copy in your home directory (~\/.bashrc) is yours, please<br \/>\n# feel free to customise it to create a shell<br \/>\n# environment to your liking.  If you feel a change<br \/>\n# would be benificial to all, please feel free to send<br \/>\n# a patch to the cygwin mailing list.<\/p>\n<p># User dependent .bashrc file<br \/>\n# Shell Options<br \/>\n# #############<\/p>\n<p># See man bash for more options&#8230;<\/p>\n<p># Don&#8217;t wait for job termination notification<br \/>\n# set -o notify<\/p>\n<p># Don&#8217;t use ^D to exit<br \/>\n# set -o ignoreeof<\/p>\n<p># Use case-insensitive filename globbing<br \/>\nshopt -s nocaseglob<\/p>\n<p># Make bash append rather than overwrite the history on disk<br \/>\n# shopt -s histappend<\/p>\n<p># When changing directory small typos can be ignored by bash<br \/>\n# for example, cd \/vr\/lgo\/apaache would find \/var\/log\/apache<br \/>\n# shopt -s cdspell<br \/>\n# Completion options<br \/>\n# ##################<\/p>\n<p># These completion tuning parameters change the default behavior of bash_completion:<\/p>\n<p># Define to access remotely checked-out files over passwordless ssh for CVS<br \/>\n# COMP_CVS_REMOTE=1<\/p>\n<p># Define to avoid stripping description in &#8211;option=description of &#8216;.\/configure &#8211;help&#8217;<br \/>\n# COMP_CONFIGURE_HINTS=1<\/p>\n<p># Define to avoid flattening internal contents of tar files<br \/>\n# COMP_TAR_INTERNAL_PATHS=1<\/p>\n<p># If this shell is interactive, turn on programmable completion enhancements.<br \/>\n# Any completions you add in ~\/.bash_completion are sourced last.<br \/>\n# case $- in<br \/>\n#   *i*) [[ -f \/etc\/bash_completion ]] &amp;&amp; . \/etc\/bash_completion ;;<br \/>\n# esac<br \/>\n# History Options<br \/>\n# ###############<\/p>\n<p># Don&#8217;t put duplicate lines in the history.<br \/>\nexport HISTCONTROL=&#8221;ignoredups&#8221;<\/p>\n<p># Ignore some controlling instructions<br \/>\n# export HISTIGNORE=&#8221;[   ]*:&amp;:bg:fg:exit&#8221;<\/p>\n<p># Whenever displaying the prompt, write the previous line to disk<br \/>\n# export PROMPT_COMMAND=&#8221;history -a&#8221;<br \/>\n# Aliases<br \/>\n# #######<\/p>\n<p># Some example alias instructions<br \/>\n# If these are enabled they will be used instead of any instructions<br \/>\n# they may mask.  For example, alias rm=&#8217;rm -i&#8217; will mask the rm<br \/>\n# application.  To override the alias instruction use a \\ before, ie<br \/>\n# \\rm will call the real rm not the alias.<\/p>\n<p># Interactive operation&#8230;<br \/>\nalias rm=&#8217;rm -i&#8217;<br \/>\nalias cp=&#8217;cp -i&#8217;<br \/>\n# alias mv=&#8217;mv -i&#8217;<\/p>\n<p># Default to human readable figures<br \/>\n# alias df=&#8217;df -h&#8217;<br \/>\n# alias du=&#8217;du -h&#8217;<\/p>\n<p># Misc \ud83d\ude42<br \/>\nalias less=&#8217;less -r&#8217;                          # raw control characters<br \/>\nalias whence=&#8217;type -a&#8217;                        # where, of a sort<br \/>\nalias grep=&#8217;grep -n &#8211;color&#8217;                     # show differences in colour<\/p>\n<p># Some shortcuts for different directory listings<br \/>\nalias ls=&#8217;ls -hF &#8211;color=tty&#8217;                 # classify files in colour<br \/>\nalias dir=&#8217;ls &#8211;color=auto &#8211;format=vertical&#8217;<br \/>\nalias vdir=&#8217;ls &#8211;color=auto &#8211;format=long&#8217;<br \/>\nalias ll=&#8217;ls -l&#8217;                              # long list<br \/>\nalias la=&#8217;ls -A&#8217;                              # all but . and ..<br \/>\nalias l=&#8217;ls -CF&#8217;                              #<br \/>\nalias lr=&#8217;ls -ltr&#8217;                            # reverse list<\/p>\n<p>alias h=&#8217;history 10&#8242;<br \/>\nalias j=&#8217;jobs&#8217;<\/p>\n<p>alias fa=&#8217;fortune -a&#8217;<br \/>\nalias fo=&#8217;fortune -o&#8217;<\/p>\n<p># Functions<br \/>\n# #########<\/p>\n<p># Some example functions<br \/>\n# function settitle() { echo -ne &#8220;\\e]2;$@\\a\\e]1;$@\\a&#8221;; }<br \/>\nfortune\n<\/p><\/blockquote>\n<blockquote><p><\/code><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>My default .bashrc file. This is taken from cygwin.# base-files version 3.7-1 # To pick up the latest recommended .bashrc content, # look in \/etc\/defaults\/etc\/skel\/.bashrc # Modifying \/etc\/skel\/.bashrc directly will prevent # setup from updating it. # The copy in your home directory (~\/.bashrc) is yours, please # feel free to customise it to create [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-linux","category-utilities"],"_links":{"self":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}