]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorpho <pho@netbsd.(none)>
Mon, 8 Dec 2008 04:21:04 +0000 (13:21 +0900)
committerpho <pho@netbsd.(none)>
Mon, 8 Dec 2008 04:21:04 +0000 (13:21 +0900)
GNUmakefile
dot-files/_xinitrc
dot-files/_zshenv
dot-files/_zshrc
tools/diff.pl [new file with mode: 0644]
tools/list-files.pl

index 6ffe0fb4d069b792a43f138aa6dc92880755d68b..5fa12308cc9cde3d1d9f7cb5d9bcfd560740ddf6 100644 (file)
@@ -9,6 +9,8 @@ help:
        @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:
@@ -43,4 +45,14 @@ import:
        -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
index 90192b6bce9fb29873d825d9737319d193246a03..b9007057c9e8ba09a87919a700a87aef56105d2d 100644 (file)
@@ -35,6 +35,14 @@ fi
 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 &
index 807201e3928a95353cf3d43672653424821f874e..51e6b4fb3c73411aafd27258844131284ba947a7 100644 (file)
@@ -53,6 +53,7 @@ export DYLD_FALLBACK_LIBRARY_PATH=""
 append_path DYLD_FALLBACK_LIBRARY_PATH /usr/pkg/lib
 
 # Languages
+export LANGUAGAE="ja"
 export LANG="ja_JP.UTF-8"
 export OUTPUT_CHARSET="UTF-8"
 
index 171382972cc22c884e6a0578324bacf607de7971..6d8cf6317ad0826970f53e699c46aab4f3c87606 100644 (file)
@@ -69,21 +69,26 @@ alias lls='ls -wla'
 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
 
diff --git a/tools/diff.pl b/tools/diff.pl
new file mode 100644 (file)
index 0000000..2471c56
--- /dev/null
@@ -0,0 +1,19 @@
+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);
index 2059c9e5e6adbe043217ba522b404440f3eee5a3..2ed8ba84cabfa8907b8802d5c317053a9db18280 100644 (file)
@@ -76,7 +76,7 @@ __DATA__
 .emacs.d
 .eshell
 .firefox
-.fontconfig*
+.fontconfig
 .fonts
 .gconf*
 .gimp*
@@ -92,8 +92,8 @@ __DATA__
 .localized
 .mozilla
 .mpd
-.mplayer/DVDKeys*
-.mplayer/skins*
+.mplayer/DVDKeys
+.mplayer/skins
 .nautilus
 .navi2ch/*.net
 .navi2ch/*.com
@@ -119,6 +119,7 @@ __DATA__
 .w3m/*arrived
 .w3m/*cookie
 .w3m/*sessions
+.wine
 .xchat2*
 .zcomp*
 .zfunc