Skip to content

Commit 9cbdb58

Browse files
committed
add dotfiles for win
1 parent 8b1ce08 commit 9cbdb58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+31312
-0
lines changed

forWin/.babunrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# JVM options
2+
export JAVA_OPTS="-Xms128m -Xmx256m"
3+
4+
# Modify these lines to set your locale
5+
export LANG="en_US.UTF-8"
6+
export LC_CTYPE="en_US.UTF-8"
7+
export LC_ALL="en_US.UTF-8"
8+
9+
# Uncomment these lines to the set your machine's default locale (and comment out the UTF-8 ones)
10+
# export LANG=$(locale -uU)
11+
# export LC_CTYPE=$(locale -uU)
12+
# export LC_ALL=$(locale -uU)
13+
14+
# Uncomment this to disable daily auto-update & proxy checks on startup (not recommended!)
15+
# export DISABLE_CHECK_ON_STARTUP="true"
16+
17+
# Uncomment to increase/decrease the check connection timeout
18+
# export CHECK_TIMEOUT_IN_SECS=4
19+
20+
# Uncomment this lines to set up your proxy
21+
export http_proxy=http://tkyproxy.intra.tis.co.jp:8080
22+
export https_proxy=https://tkyproxy.intra.tis.co.jp:8080
23+
# export ftp_proxy=$http_proxy
24+
# export no_proxy=localhost
25+
26+
# User Agent section
27+
# List of user agents: http://www.useragentstring.com/pages/useragentstring.php
28+
# export USER_AGENT="Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))"
29+
30+
# Uncomment and increase the timeout period if you get errors/timeouts on babun check
31+
# export CHECK_TIMEOUT_IN_SECS=4
32+
33+
# Uncomment to enable bloda detection
34+
# export CYGWIN="nodosfilewarning mintty detect_bloda"

forWin/.bashrc

+198
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# To the extent possible under law, the author(s) have dedicated all
2+
# copyright and related and neighboring rights to this software to the
3+
# public domain worldwide. This software is distributed without any warranty.
4+
# You should have received a copy of the CC0 Public Domain Dedication along
5+
# with this software.
6+
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
7+
8+
# base-files version 4.2-3
9+
10+
# ~/.bashrc: executed by bash(1) for interactive shells.
11+
12+
# The latest version as installed by the Cygwin Setup program can
13+
# always be found at /etc/defaults/etc/skel/.bashrc
14+
15+
# Modifying /etc/skel/.bashrc directly will prevent
16+
# setup from updating it.
17+
18+
# The copy in your home directory (~/.bashrc) is yours, please
19+
# feel free to customise it to create a shell
20+
# environment to your liking. If you feel a change
21+
# would be benifitial to all, please feel free to send
22+
# a patch to the cygwin mailing list.
23+
24+
# User dependent .bashrc file
25+
26+
# If not running interactively, don't do anything
27+
[[ "$-" != *i* ]] && return
28+
29+
# Shell Options
30+
#
31+
# See man bash for more options...
32+
#
33+
# Don't wait for job termination notification
34+
# set -o notify
35+
#
36+
# Don't use ^D to exit
37+
# set -o ignoreeof
38+
#
39+
# Use case-insensitive filename globbing
40+
# shopt -s nocaseglob
41+
#
42+
# Make bash append rather than overwrite the history on disk
43+
# shopt -s histappend
44+
#
45+
# When changing directory small typos can be ignored by bash
46+
# for example, cd /vr/lgo/apaache would find /var/log/apache
47+
# shopt -s cdspell
48+
49+
# Completion options
50+
#
51+
# These completion tuning parameters change the default behavior of bash_completion:
52+
#
53+
# Define to access remotely checked-out files over passwordless ssh for CVS
54+
# COMP_CVS_REMOTE=1
55+
#
56+
# Define to avoid stripping description in --option=description of './configure --help'
57+
# COMP_CONFIGURE_HINTS=1
58+
#
59+
# Define to avoid flattening internal contents of tar files
60+
# COMP_TAR_INTERNAL_PATHS=1
61+
#
62+
# Uncomment to turn on programmable completion enhancements.
63+
# Any completions you add in ~/.bash_completion are sourced last.
64+
# [[ -f /etc/bash_completion ]] && . /etc/bash_completion
65+
66+
# History Options
67+
#
68+
# Don't put duplicate lines in the history.
69+
# export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
70+
#
71+
# Ignore some controlling instructions
72+
# HISTIGNORE is a colon-delimited list of patterns which should be excluded.
73+
# The '&' is a special pattern which suppresses duplicate entries.
74+
# export HISTIGNORE=$'[ \t]*:&:[fb]g:exit'
75+
# export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:ls' # Ignore the ls command as well
76+
#
77+
# Whenever displaying the prompt, write the previous line to disk
78+
# export PROMPT_COMMAND="history -a"
79+
80+
# Aliases
81+
#
82+
# Some people use a different file for aliases
83+
# if [ -f "${HOME}/.bash_aliases" ]; then
84+
# source "${HOME}/.bash_aliases"
85+
# fi
86+
#
87+
# Some example alias instructions
88+
# If these are enabled they will be used instead of any instructions
89+
# they may mask. For example, alias rm='rm -i' will mask the rm
90+
# application. To override the alias instruction use a \ before, ie
91+
# \rm will call the real rm not the alias.
92+
#
93+
# Interactive operation...
94+
# alias rm='rm -i'
95+
# alias cp='cp -i'
96+
# alias mv='mv -i'
97+
#
98+
# Default to human readable figures
99+
# alias df='df -h'
100+
# alias du='du -h'
101+
#
102+
# Misc :)
103+
# alias less='less -r' # raw control characters
104+
# alias whence='type -a' # where, of a sort
105+
# alias grep='grep --color' # show differences in colour
106+
# alias egrep='egrep --color=auto' # show differences in colour
107+
# alias fgrep='fgrep --color=auto' # show differences in colour
108+
#
109+
# Some shortcuts for different directory listings
110+
# alias ls='ls -hF --color=tty' # classify files in colour
111+
# alias dir='ls --color=auto --format=vertical'
112+
# alias vdir='ls --color=auto --format=long'
113+
# alias ll='ls -l' # long list
114+
# alias la='ls -A' # all but . and ..
115+
# alias l='ls -CF' #
116+
117+
# Umask
118+
#
119+
# /etc/profile sets 022, removing write perms to group + others.
120+
# Set a more restrictive umask: i.e. no exec perms for others:
121+
# umask 027
122+
# Paranoid: neither group nor others have any perms:
123+
# umask 077
124+
125+
# Functions
126+
#
127+
# Some people use a different file for functions
128+
# if [ -f "${HOME}/.bash_functions" ]; then
129+
# source "${HOME}/.bash_functions"
130+
# fi
131+
#
132+
# Some example functions:
133+
#
134+
# a) function settitle
135+
# settitle ()
136+
# {
137+
# echo -ne "\e]2;$@\a\e]1;$@\a";
138+
# }
139+
#
140+
# b) function cd_func
141+
# This function defines a 'cd' replacement function capable of keeping,
142+
# displaying and accessing history of visited directories, up to 10 entries.
143+
# To use it, uncomment it, source this file and try 'cd --'.
144+
# acd_func 1.0.5, 10-nov-2004
145+
# Petar Marinov, http:/geocities.com/h2428, this is public domain
146+
# cd_func ()
147+
# {
148+
# local x2 the_new_dir adir index
149+
# local -i cnt
150+
#
151+
# if [[ $1 == "--" ]]; then
152+
# dirs -v
153+
# return 0
154+
# fi
155+
#
156+
# the_new_dir=$1
157+
# [[ -z $1 ]] && the_new_dir=$HOME
158+
#
159+
# if [[ ${the_new_dir:0:1} == '-' ]]; then
160+
# #
161+
# # Extract dir N from dirs
162+
# index=${the_new_dir:1}
163+
# [[ -z $index ]] && index=1
164+
# adir=$(dirs +$index)
165+
# [[ -z $adir ]] && return 1
166+
# the_new_dir=$adir
167+
# fi
168+
#
169+
# #
170+
# # '~' has to be substituted by ${HOME}
171+
# [[ ${the_new_dir:0:1} == '~' ]] && the_new_dir="${HOME}${the_new_dir:1}"
172+
#
173+
# #
174+
# # Now change to the new dir and add to the top of the stack
175+
# pushd "${the_new_dir}" > /dev/null
176+
# [[ $? -ne 0 ]] && return 1
177+
# the_new_dir=$(pwd)
178+
#
179+
# #
180+
# # Trim down everything beyond 11th entry
181+
# popd -n +11 2>/dev/null 1>/dev/null
182+
#
183+
# #
184+
# # Remove any other occurence of this dir, skipping the top of the stack
185+
# for ((cnt=1; cnt <= 10; cnt++)); do
186+
# x2=$(dirs +${cnt} 2>/dev/null)
187+
# [[ $? -ne 0 ]] && return 0
188+
# [[ ${x2:0:1} == '~' ]] && x2="${HOME}${x2:1}"
189+
# if [[ "${x2}" == "${the_new_dir}" ]]; then
190+
# popd -n +$cnt 2>/dev/null 1>/dev/null
191+
# cnt=cnt-1
192+
# fi
193+
# done
194+
#
195+
# return 0
196+
# }
197+
#
198+
# alias cd=cd_func

forWin/.oh-my-zsh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 22632aac7c99e02ec38223c84b2348435a82d1b5

forWin/.tmux.conf

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Prefix
2+
set-option -g prefix C-k
3+
4+
# disable ESC delay
5+
set -s escape-time 0
6+
7+
# set default shell
8+
set-option -g default-shell /bin/zsh
9+
10+
#set-option -g default-command "reattach-to-user-namespace -l zsh"
11+
12+
set-window-option -g utf8 on
13+
set-window-option -g xterm-keys on
14+
set-window-option -g mode-keys vi
15+
set-window-option -g automatic-rename on
16+
set-option -g mouse on
17+
set-option -g history-limit 10000
18+
set-option -g base-index 1
19+
set-option -g pane-base-index 1
20+
set-option -g bell-action none
21+
set-option -g buffer-limit 20
22+
set-option -s escape-time 1
23+
24+
#256色端末を使用
25+
set-option -g default-terminal "xterm-256color"
26+
27+
# pane-active-border
28+
set-window-option -g window-status-current-format "#[fg=colour236, bg=colour136]€#[fg=colour255, bg=colour168] #I #W #[fg=colour124, bg=colour136]€"
29+
set-option -g status on
30+
set-option -g status-interval 2
31+
set-option -g status-utf8 on
32+
set-option -g status-justify "left"
33+
set -g status-bg colour236
34+
set -g status-fg colour255
35+
set-option -g status-left-length 100
36+
set-option -g status-right-length 120
37+
set-option -g status-left "##[bg=colour191]#[fg=0]# UGA %% #[bg=colour236]#[fg=colour168] €"
38+
#set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)#[bg=colour0]#[fg=colour255] #[fg=colour198]#(pwd-name) #[bg=colour22]#[fg=white] M #(~/.tmux/bin/used-mem) %% #[bg=colour0]#[fg=colour22]箘€"
39+
40+
#set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
41+
42+
# KeyBindings
43+
bind r source-file ~/.tmux.conf\; display-message "Reload Config!!"
44+
45+
#split windows like vim
46+
# vim's definition of a horizontal/vertical split is reversed from tmux's
47+
bind s split-window -v
48+
bind v split-window -h
49+
50+
# vi-style controls for copy mode
51+
setw -g mode-keys vi
52+
bind -t vi-copy 'v' begin-selection
53+
bind -t vi-copy 'y' copy-selection
54+
# move x clipboard into tmux paste buffer
55+
bind C-p run "clip -o | tmux load-buffer -"
56+
# # move tmux copy buffer into x clipboard
57+
bind C-c run "tmux save-buffer - | clip -i -selection clipboard"
58+
59+
# copy-mode ^[
60+
unbind ^"["
61+
bind -r ^"[" copy-mode
62+
unbind ^]
63+
bind -r ^] paste-buffer
64+
65+
# paneの移動
66+
bind -r h select-pane -L
67+
bind -r j select-pane -D
68+
bind -r k select-pane -U
69+
bind -r l select-pane -R
70+
71+
bind -r C-h select-pane -L
72+
bind -r C-j select-pane -D
73+
bind -r C-k select-pane -U
74+
bind -r C-l select-pane -R
75+
76+
bind -r C-n next-window
77+
bind -r C-p previous-window
78+
79+
bind -n -r M-1 select-pane -t .1
80+
bind -n -r M-2 select-pane -t .2
81+
bind -n -r M-3 select-pane -t .3
82+
bind -n -r M-4 select-pane -t .4
83+
bind -n -r M-5 select-pane -t .5
84+
85+
bind K confirm-before kill-pane
86+
87+
# 各種ペインの移動
88+
bind < resize-pane -L 1
89+
bind > resize-pane -R 1
90+
bind - resize-pane -D 1
91+
bind + resize-pane -U 1

0 commit comments

Comments
 (0)