diff --git a/.stuff/.bashrc b/.stuff/.bashrc index abe5f5e..293afeb 100644 --- a/.stuff/.bashrc +++ b/.stuff/.bashrc @@ -40,6 +40,7 @@ if [ -n "$PS1" ] ;then xargs -i svnlog '-{}' svn+ssh://ampsvn/srv/ampemb/trunk/embedded; } svnst() { svn st "$@" | grep -v '^[X?]'; } + hgst() { hg st "$@" | grep -v '^[X?]'; } lth() { ls -lat "$@" | head -20; } alias open='kfmclient exec' url() { kfmclient openURL "$*"; } @@ -182,7 +183,7 @@ if [ -n "$PS1" ] ;then if [[ -f /opt/toolchain/toolchain-setup ]] ;then tt() { unset TOOLCHAIN_HOME ;. /opt/toolchain/toolchain-setup>/dev/null; } - untt() { unset CROSS_COMPILE ARCH TOOLCHAIN_PS1_LABEL TOOLCHAIN_HOME + untt() { unset CROSS_COMPILE ARCH TOOLCHAIN_PS1_LABEL unalias make; } tt; untt fi @@ -200,7 +201,7 @@ if [ -n "$PS1" ] ;then for d in ~ $AMPROOT/{,arm9,arm9/agentframework/{,agents,libs},arm9/apps/{,drivers},arm9/utils,arm9/drivers} ~/{amplex,releases,src,abs,abs2} ;do CDPATH=$CDPATH:$d done - export LUA_CPATH="$AMPROOT/arm9/agentframework/lua/?.so" + export LUA_CPATH=";;$AMPROOT/arm9/agentframework/lua/?.so" if [[ ! -n $noCD ]] ;then echo $AMPROOT/arm9 cd $AMPROOT/arm9 diff --git a/.stuff/.dircolors b/.stuff/.dircolors new file mode 100644 index 0000000..e100738 --- /dev/null +++ b/.stuff/.dircolors @@ -0,0 +1,108 @@ +# Configuration file for dircolors, a utility to help you set the +# LS_COLORS environment variable used by GNU ls with the --color option. + +# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the +# slackware version of dircolors) are recognized but ignored. + +# Below, there should be one TERM entry for each termtype that is colorizable +TERM linux +TERM linux-c +TERM mach-color +TERM console +TERM con132x25 +TERM con132x30 +TERM con132x43 +TERM con132x60 +TERM con80x25 +TERM con80x28 +TERM con80x30 +TERM con80x43 +TERM con80x50 +TERM con80x60 +TERM dtterm +TERM xterm +TERM xterm-color +TERM xterm-16color +TERM xterm-debian +TERM rxvt +TERM screen +TERM screen-w +TERM vt100 +TERM Eterm + +# Below are the color init strings for the basic file types. A color init +# string consists of one or more of the following numeric codes: +# Attribute codes: +# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed +# Text color codes: +# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white +# Background color codes: +# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white +NORMAL 00 # global default, although everything should be something. +FILE 00 # normal file +DIR 34 # directory +LINK 36 # symbolic link. (If you set this to 'target' instead of a + # numerical value, the color is as for the file pointed to.) +FIFO 40;33 # pipe +SOCK 04;35 # socket +DOOR 04;35 # door +BLK 33;04 # block device driver +CHR 33;04 # character device driver +ORPHAN 40;31;01 # symlink to nonexistent file + +# This is for files with execute permission: +EXEC 32 + +# List any file extensions like '.gz' or '.tar' that you would like ls +# to colorize below. Put the extension, a space, and the color init string. +# (and any comments you want to add after a '#') + +# If you use DOS-style suffixes, you may want to uncomment the following: +#.cmd 01;32 # executables (green) +#.exe 01;32 +#.com 01;32 +#.btm 01;32 +#.bat 01;32 + +.tar 31 # archives or compressed (red) +.tgz 31 +.arj 31 +.taz 31 +.lzh 31 +.zip 31 +.z 31 +.Z 31 +.gz 31 +.bz2 31 +.deb 31 +.rpm 31 +.jar 31 + +# image formats +.jpg 35 +.jpeg 35 +.gif 35 +.bmp 35 +.pbm 35 +.pgm 35 +.ppm 35 +.tga 35 +.xbm 35 +.xpm 35 +.tif 35 +.tiff 35 +.png 35 +.mov 35 +.mpg 35 +.mpeg 35 +.avi 35 +.fli 35 +.gl 35 +.dl 35 +.xcf 35 +.xwd 35 + +# audio formats +.ogg 35 +.mp3 35 +.wav 35 diff --git a/.stuff/.toolchainrc b/.stuff/.toolchainrc new file mode 100644 index 0000000..e69de29 diff --git a/.stuff/.vim/after/syntax/lua.vim b/.stuff/.vim/after/syntax/lua.vim new file mode 100644 index 0000000..73d90f0 --- /dev/null +++ b/.stuff/.vim/after/syntax/lua.vim @@ -0,0 +1,2 @@ + +exe 'syn match luaOperator /||/' diff --git a/.stuff/.vim/ftdetect/mediawiki.vim b/.stuff/.vim/ftdetect/mediawiki.vim new file mode 100644 index 0000000..f7c7152 --- /dev/null +++ b/.stuff/.vim/ftdetect/mediawiki.vim @@ -0,0 +1,5 @@ +augroup filetypedetect +au BufNewFile,BufRead *.mwiki setfiletype mediawiki +augroup END + + diff --git a/.stuff/.vim/ftplugin/mediawiki.vim b/.stuff/.vim/ftplugin/mediawiki.vim new file mode 100644 index 0000000..ee82e4f --- /dev/null +++ b/.stuff/.vim/ftplugin/mediawiki.vim @@ -0,0 +1,21 @@ +setlocal encoding=utf-8 +setlocal textwidth=0 +setlocal linebreak +setlocal matchpairs+=<:> +setlocal showbreak=+\ +nnoremap k gk +nnoremap j gj +nnoremap gk +nnoremap gj +nnoremap 0 g0 +nnoremap ^ g^ +nnoremap $ g$ +inoremap gk +inoremap gj +vnoremap k gk +vnoremap j gj +vnoremap gk +vnoremap gj +vnoremap 0 g0 +vnoremap ^ g^ +vnoremap $ g$ diff --git a/.stuff/.vim/macros/less.vim b/.stuff/.vim/macros/less.vim new file mode 100644 index 0000000..8eb435c --- /dev/null +++ b/.stuff/.vim/macros/less.vim @@ -0,0 +1,249 @@ +" Vim script to work like "less" +" Maintainer: Bram Moolenaar +" Last Change: 2006 Dec 05 + +" Avoid loading this file twice, allow the user to define his own script. +if exists("loaded_less") + finish +endif +let loaded_less = 1 + +" If not reading from stdin, skip files that can't be read. +" Exit if there is no file at all. +if argc() > 0 + let s:i = 0 + while 1 + if filereadable(argv(s:i)) + if s:i != 0 + sleep 3 + endif + break + endif + if isdirectory(argv(s:i)) + echomsg "Skipping directory " . argv(s:i) + elseif getftime(argv(s:i)) < 0 + echomsg "Skipping non-existing file " . argv(s:i) + else + echomsg "Skipping unreadable file " . argv(s:i) + endif + echo "\n" + let s:i = s:i + 1 + if s:i == argc() + quit + endif + next + endwhile +endif + +set nocp +syntax on +set so=0 +set hlsearch +set incsearch +nohlsearch +" Don't remember file names and positions +set viminfo= +set nows +" Inhibit screen updates while searching +let s:lz = &lz +set lz + +" Used after each command: put cursor at end and display position +if &wrap + noremap L L0:redraw:file + au VimEnter * normal! L0 +else + noremap L Lg0:redraw:file + au VimEnter * normal! Lg0 +endif + +" When reading from stdin don't consider the file modified. +au VimEnter * set nomod + +" Can't modify the text +set noma + +" Give help +noremap h :call Help() +map H h +fun! s:Help() + echo " One page forward b One page backward" + echo "d Half a page forward u Half a page backward" + echo " One line forward k One line backward" + echo "G End of file g Start of file" + echo "N% percentage in file" + echo "\n" + echo "/pattern Search for pattern ?pattern Search backward for pattern" + echo "n next pattern match N Previous pattern match" + echo "\n" + echo ":n Next file :p Previous file" + echo "\n" + echo "q Quit v Edit file" + let i = input("Hit Enter to continue") +endfun + +" Scroll one page forward +noremap