{"id":1694,"date":"2011-10-14T00:57:03","date_gmt":"2011-10-13T16:57:03","guid":{"rendered":"http:\/\/www.jpuyy.com\/blog\/?p=1694"},"modified":"2014-04-20T16:01:28","modified_gmt":"2014-04-20T08:01:28","slug":"my-bashrc","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=1694","title":{"rendered":"\u6211\u7684.bashrc"},"content":{"rendered":"<p>\u7528\u4e86yardvps\u7684tree,\u91cc\u9762\u7684.bashrc\u5f88\u4e0d\u4e60\u60ef<\/p>\n<p>\u6539\u6210\u81ea\u5df2\u4e60\u60ef\u7684\u5c31\u597d\u4e86<\/p>\n<pre>root@localhost:\/var\/www\/web0\/addr# cat ~\/.bashrc\r\n # ~\/.bashrc: executed by bash(1) for non-login shells.\r\n # Note: PS1 and umask are already set in \/etc\/profile. You should not\r\n # need this unless you want different defaults for root.\r\n # PS1='${debian_chroot:+($debian_chroot)}h:w$ '\r\n # umask 022\r\n # You may uncomment the following lines if you want `ls' to be colorized:\r\n export LS_OPTIONS='--color=auto'\r\n eval \"`dircolors`\"\r\n alias ls='ls $LS_OPTIONS'\r\n alias ll='ls $LS_OPTIONS -lhS'\r\n alias l='ls $LS_OPTIONS -lAh'\r\n alias vi='vim -n'\r\n #\r\n # Some more alias to avoid making mistakes:\r\n alias rm='rm -i'\r\n alias cp='cp -i'\r\n alias mv='mv -i'\r\n alias grep='grep --color=auto'\r\n # alias online='last | grep still | grep ppp |sort -k 2,2'\r\n alias reboot='sync ; sync ;sync ;reboot'<\/pre>\n<p>\u5173\u4e8ePS1<br \/>\nexport PS1=&#8221;\\u@\\h:\\W\\$&#8221;<\/p>\n<p>\\u\u8868\u793a\u7528\u6237\u540d<br \/>\n\\h\u4e3b\u673a\u540d<br \/>\n\\W\u5f53\u524d\u76ee\u5f55<\/p>\n<p>\u6700\u540e\u8bb0\u5f97source ~\/.bashrc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u4e86yardvps\u7684tree,\u91cc\u9762\u7684.bashrc\u5f88\u4e0d\u4e60\u60ef \u6539\u6210\u81ea\u5df2\u4e60\u60ef\u7684\u5c31\u597d\u4e86 root@localhost:\/var\/www\/web0\/addr# cat ~\/.bashrc # ~\/.bashrc: executed by bash(1) for non-login shells. # Note: PS1 and umask are already set in \/etc\/profile. You should not # need this unless you want different defaults for root. # PS1=&#8217;${debian_chroot:+($debian_chroot)}h:w$ &#8216; # umask 022 # You may uncomment the following lines if you want `ls&#8217; to be [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1694","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1694"}],"version-history":[{"count":8,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1694\/revisions"}],"predecessor-version":[{"id":6288,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1694\/revisions\/6288"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}