| @@ -1,3 +1,31 @@ | |||||
| Dotfiles | |||||
| ======== | |||||
| First Principle | |||||
| --------------- | |||||
| __Do not go out of ways how the default environments work__. | |||||
| There are many cases when I must work on foreign environments, and it is always | |||||
| VERY irritating when things will not work as I expect, yet setting up my own | |||||
| environment will be troublesome. So I avoid changing behaviors of tools, | |||||
| except for emacs. | |||||
| Emacs is the editor I usually use for coding. I decided to change the behavior | |||||
| of emacs as I want without thinking about other environments. When I cannot use | |||||
| my emacs.el I'll use vi or vim instead. | |||||
| Other tools like bash and vim basically work in the same ways even when using my | |||||
| rc files. The main changes are related to showing informations, typically the | |||||
| bash prompt. | |||||
| Sourcing flow | |||||
| ------------- | |||||
| ~/.bash_profile <= console login | ~/.bash_profile <= console login | ||||
| | | | | ||||
| |--~/.dotfiles/profile | |--~/.dotfiles/profile | ||||
| @@ -54,6 +54,13 @@ function ignore(k, i) [k, null]; | |||||
| // } | // } | ||||
| // ]]></>.toString() | // ]]></>.toString() | ||||
| // ); | // ); | ||||
| style.register( | |||||
| '@-moz-document url-prefix(\"http://www.tumblr.com/\") { #pagination {' + | |||||
| 'position: fixed;' + | |||||
| 'bottom: 50px;' + | |||||
| 'right: 100px;' + | |||||
| 'padding-right: 0px !important' + | |||||
| '} }' , style.XHTML); | |||||
| /////////////////////////////////// | /////////////////////////////////// | ||||
| //search engine | //search engine | ||||
| @@ -74,7 +81,7 @@ plugins.options["search-url-list"] = [ | |||||
| ["shoutcast","http://www.shoutcast.com/Internet-Radio/%q"], | ["shoutcast","http://www.shoutcast.com/Internet-Radio/%q"], | ||||
| ["delicious 10sr", | ["delicious 10sr", | ||||
| "http://delicious.com/10sr?addtag=%q&setcount=50&opennew=1"], | "http://delicious.com/10sr?addtag=%q&setcount=50&opennew=1"], | ||||
| ["open raw","%r"], | |||||
| ["open raw","%r"] | |||||
| ]; | ]; | ||||
| plugins.options["my-keysnail-bookmarks"] = [ | plugins.options["my-keysnail-bookmarks"] = [ | ||||
| @@ -35,7 +35,7 @@ export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib" | |||||
| #_python_pkg_conf="/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig" | #_python_pkg_conf="/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig" | ||||
| export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$_python_pkg_conf" | export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$_python_pkg_conf" | ||||
| export MANPATH="$MANPATH:$HOME/.local/share/man" | |||||
| #export MANPATH="`manpath`:$HOME/.local/share/man" | |||||
| # in my environment powerdown does not work | # in my environment powerdown does not work | ||||
| type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 | type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 | ||||