@echo " make install - update the current dot files with the repository"
@echo " make import FILES=<FILES>"
@echo " - import the dot files into the repository"
+ @echo " make diff FILE=<FILE>"
+ @echo " - show diff of the dot file"
@echo
lint:
-git status
endif
-.PHONY: help lint update commit install import
+ifeq ($(FILE),)
+diff:
+ @echo "Specify one file."
+ @echo "Usage: make diff FILE=<FILE>"
+ @exit 1
+else
+diff:
+ perl ./tools/diff.pl $(FILE) | $(PAGER)
+endif
+
+.PHONY: help lint update commit install import diff
LANG="ja_JP.UTF-8"; export LANG
GTK_IM_MODULE="uim"; export GTK_IM_MODULE
+# start some nice programs
+xhost +localhost
+
+# Set the mouse speed
+xset m 5 4
+
+echo ".xinitrc is going to exec window manager..."
+
# start the window manager
if which quartz-wm 2>&1 >/dev/null; then
quartz-wm --only-proxy &
append_path DYLD_FALLBACK_LIBRARY_PATH /usr/pkg/lib
# Languages
+export LANGUAGAE="ja"
export LANG="ja_JP.UTF-8"
export OUTPUT_CHARSET="UTF-8"
alias p='pushd'
alias o='popd'
alias d='dirs'
-alias unstuff='open -a StuffIt\ Expander.app'
-alias pa='open -a NiseRingo.app'
alias df='df -h'
alias ed='ed -p "ed> "'
alias du='du -k'
alias nc='nc -vv'
alias mwget="wget --user-agent='Mozilla/1.4b'"
alias pstow="pushd /usr/local/stow"
-alias safari="open -a Safari"
alias w3m="w3m -O UTF-8"
alias w3mb="w3m -O UTF-8 -B"
-alias ldd="otool -L"
-alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
-alias hengband='open ~/Applications/hengband*/Hengband*'
+if [ $(hostname) = "aria.cielonegro.org" ]; then
+ alias safari="open -a Safari"
+ alias unstuff='open -a StuffIt\ Expander.app'
+ alias pa='open -a NiseRingo.app'
+ alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
+ alias hengband='open ~/Applications/hengband*/Hengband*'
+fi
+
+if [ $(uname) = "Darwin" ]; then
+ alias ldd="otool -L"
+fi
# The following lines were added by compinstall
--- /dev/null
+use strict;
+use warnings;
+use Smart::Comments;
+use lib 'tools';
+require 'utils.pl';
+use File::Spec;
+use File::Path;
+
+sub main {
+ my $arg = shift;
+
+ my $rel = File::Spec->abs2rel($arg, $ENV{HOME});
+ my $abs = File::Spec->rel2abs($rel, $ENV{HOME});
+ my $saved = rel2saved($rel);
+
+ system('diff', '-u', $abs, $saved);
+}
+
+main($ARGV[0] // die);
.emacs.d
.eshell
.firefox
-.fontconfig*
+.fontconfig
.fonts
.gconf*
.gimp*
.localized
.mozilla
.mpd
-.mplayer/DVDKeys*
-.mplayer/skins*
+.mplayer/DVDKeys
+.mplayer/skins
.nautilus
.navi2ch/*.net
.navi2ch/*.com
.w3m/*arrived
.w3m/*cookie
.w3m/*sessions
+.wine
.xchat2*
.zcomp*
.zfunc