Skip to content

Commit

Permalink
Initial dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
yakkun committed May 5, 2019
1 parent 78e9519 commit 2f33066
Show file tree
Hide file tree
Showing 17 changed files with 1,356 additions and 0 deletions.
543 changes: 543 additions & 0 deletions .config/alacritty/alacritty.yml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .config/git/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.DS_Store
Thumbs.db
*~
*.swp
*.bak
.svn/
desktop.ini
.buildpath
.project
.settings
.idea
*.tmproj
*.sublime-project
*.sublime-workspace
.vscode/
191 changes: 191 additions & 0 deletions .config/karabiner/karabiner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500
},
"rules": [
{
"description": "コマンドキーを単体で押したときに、英数・かなキーを送信する。(左コマンドキーは英数、右コマンドキーはかな) (rev 2)",
"manipulators": [
{
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 631,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": []
}
],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": {
"key_code": "display_brightness_decrement"
}
},
{
"from": {
"key_code": "f2"
},
"to": {
"key_code": "display_brightness_increment"
}
},
{
"from": {
"key_code": "f3"
},
"to": {
"key_code": "mission_control"
}
},
{
"from": {
"key_code": "f4"
},
"to": {
"key_code": "launchpad"
}
},
{
"from": {
"key_code": "f5"
},
"to": {
"key_code": "illumination_decrement"
}
},
{
"from": {
"key_code": "f6"
},
"to": {
"key_code": "illumination_increment"
}
},
{
"from": {
"key_code": "f7"
},
"to": {
"key_code": "rewind"
}
},
{
"from": {
"key_code": "f8"
},
"to": {
"key_code": "play_or_pause"
}
},
{
"from": {
"key_code": "f9"
},
"to": {
"key_code": "fastforward"
}
},
{
"from": {
"key_code": "f10"
},
"to": {
"key_code": "mute"
}
},
{
"from": {
"key_code": "f11"
},
"to": {
"key_code": "volume_decrement"
}
},
{
"from": {
"key_code": "f12"
},
"to": {
"key_code": "volume_increment"
}
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"keyboard_type": "ansi"
}
}
]
}
55 changes: 55 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[user]
name = YAKKUN Yasuyoshi IWAICHI
email = [email protected]

[color]
ui = auto

[alias]
co = checkout
ci = commit
st = status --short --branch
br = branch
branches = branch -a
tags = tag
log = log --stat
tree = log --graph --date=short --pretty='format:%C(yellow)%h%Creset %s %Cgreen(%an)%Creset %Cred%d%Creset'
delete-merged-branches = !git branch --merged | grep -v '*' | egrep -v '^master|release|develop$' | xargs git branch -d
follow-upstream = pull --rebase upstream
merge-upstream = pull --no-ff upstream
remotes = remote -v
stashes = stash list
aliases = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\:\\ /

[core]
editor = vim
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
commentchar = ";"

[push]
default = current

[pull]
default = current
ff = only

[rebase]
autosquash = true

[commit]
verbose = true

[secrets]
providers = git secrets --aws-provider
patterns = [A-Z0-9]{20}
patterns = (\"|')?(AWS|aws|Aws)?_?(SECRET|secret|Secret)?_?(ACCESS|access|Access)?_?(KEY|key|Key)(\"|')?\\s*(:|=>|=)\\s*(\"|')?[A-Za-z0-9/\\+=]{40}(\"|')?
patterns = (\"|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?(\"|')?\\s*(:|=>|=)\\s*(\"|')?[0-9]{4}\\-?[0-9]{4}\\-?[0-9]{4}(\"|')?
patterns = (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
allowed = AKIAIOSFODNN7EXAMPLE
allowed = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

[branch "master"]
rebase = true

[includeIf "gitdir:~/.ghq/bitbucket.org/beBit/**"]
path = ~/.gitconfig-bebit
3 changes: 3 additions & 0 deletions .gitconfig-bebit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[user]
name = YAKKUN Yasuyoshi IWAICHI
email = [email protected]
1 change: 1 addition & 0 deletions .ssh/conf.d/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
confidential/**
Empty file.
5 changes: 5 additions & 0 deletions .ssh/conf.d/github.com
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Host github.com
User git
Hostname ssh.github.com
Port 443
PreferredAuthentications publickey
4 changes: 4 additions & 0 deletions .ssh/conf.d/yakkun.biz
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Host *.yakkun.biz
User yakkun
Port 8922
PreferredAuthentications publickey
9 changes: 9 additions & 0 deletions .ssh/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Include conf.d/github.com
Include conf.d/yakkun.biz
Include conf.d/confidentialwww/*

Host *
PermitLocalCommand yes
ServerAliveInterval 60
AddKeysToAgent yes
UseKeychain yes
47 changes: 47 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
### C-t is prefix (instead of C-b by default)
set -g prefix C-t
unbind C-b
bind C-t send-prefix

### General
# Use 256 color
set -g default-terminal "screen-256color"
# Fix key delay (ESC for Vim)
set -sg escape-time 0
# Numbers for window/pain
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on

### Keybindings
unbind c
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
unbind k
bind k confirm-before kill-pane
unbind t
bind t last-window
bind -r C-n next-window
bind -r C-p previous-window
unbind w
bind w choose-window
bind C-t run "tmux last-pane || tmux last-window || tmux new-window"
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded source-file"

### Status bar
set -g status-interval 1
set -g status-style fg=colour250,bg=colour242
set -g status-left-length 40
set -g status-left "#{?client_prefix,#[reverse],} [#S:#I.#P] #[fg=white]#(whoami)@#h "
set -g window-status-format " #I #W #F "
set -g window-status-current-format " #I #W #F "
set -g window-status-current-style bold,fg=white,bg=colour24
set -g status-right-length 150
set -g status-right "%c "
set -g message-style bold,fg=white,bg=colour52

### Pane border
set -g pane-border-style fg=colour242
set -g pane-active-border-style fg=colour242,bg=colour242
Loading

0 comments on commit 2f33066

Please sign in to comment.