Last active
July 29, 2023 13:37
-
-
Save kozo2/45ed32f44a08c8efbfcee0064ddbc5f5 to your computer and use it in GitHub Desktop.
rcfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# User specific aliases and functions | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
export CPATH=/root/hdf5-1.8.14-linux-centos5-x86_64-gcc482-shared/include:/root/boost_1_59_0 | |
export LD_LIBRARY_PATH=/root/hdf5-1.8.14-linux-centos5-x86_64-gcc482-shared/lib:$LD_LIBRARY_PATH | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit | |
compinit | |
PROMPT="[%n@%m]%~%# " | |
setopt autocd | |
alias l="ls -Gl" | |
alias le="less" | |
alias vim="/usr/local/bin/vim" | |
alias t='git st' | |
alias gp="git pull" | |
export PATH=$HOME/bin:$PATH | |
DOCKER_HOST=tcp://127.0.0.1:4243 | |
HISTFILE=$HOME/.zsh-history | |
HISTSIZE=1024 | |
SAVEHIST=1024 | |
setopt extended_history | |
setopt share_history | |
setopt histignorealldups | |
function history-all { history -E 1 } | |
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} r:|[-_.]=**' | |
#bindkey -v | |
#bindkey -M viins 'jj' vi-cmd-mode | |
#bindkey -M viins 'kk' vi-cmd-mode | |
#bindkey -M viins '^k' kill-line | |
#bindkey -M viins '^a' beginning-of-line | |
#bindkey -M viins '^e' end-of-line | |
#bindkey -M viins '^f' forward-char | |
#bindkey -M viins '^p' up-line-or-history | |
#bindkey -M viins '^n' down-line-or-history | |
function ranger-cd { | |
tempfile='/tmp/chosendir' | |
/usr/local/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}" | |
test -f "$tempfile" && | |
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then | |
cd -- "$(cat "$tempfile")" | |
fi | |
rm -f -- "$tempfile" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colo evening | |
set guifont=MS_Gothic:h14 | |
set guioptions+=a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Alias s Start-Process | |
Set-Alias a Get-Alias | |
Set-Alias g git | |
Set-Alias fh Get-FileHash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unmap l | |
unmap ; | |
unmap ' | |
unmap h | |
map l scrollPageDown | |
map ; scrollPageUp | |
map ' removeTab | |
map h LinkHints.activateMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nobackup | |
set noswapfile | |
nnoremap ; : | |
nnoremap : ; | |
inoremap jj <Esc> | |
inoremap kk <Esc> | |
"filetype plugin indent on | |
"syntax on | |
syntax enable | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set cwh=21 | |
set expandtab | |
set splitbelow | |
set foldmethod=marker | |
set spell | |
set autochdir | |
set autowrite | |
" set autowriteall | |
set fileencodings=ucs-bom,utf-8 | |
autocmd CursorHold * wall | |
autocmd CursorHoldI * wall | |
nnoremap <Space>. :<C-u>edit $MYVIMRC<CR> | |
nnoremap <C-h> :<C-u>help<Space> | |
if has('keymap') | |
let tcvime_keymap = 'tcode' | |
set iminsert=0 imsearch=0 | |
imap <unique> <C-J> <Plug>TcvimeIEnableKeymap | |
imap <silent> <unique> <C-L> <Plug>TcvimeIDisableKeymap | |
imap <silent> <unique> <ESC> <ESC>:set imsearch=0<CR> | |
imap <silent> <unique> <C-K>/ <Plug>TcvimeIAsciiStart | |
endif | |
function TcvimeCustomKeymap() | |
" tc2同様の後置型交ぜ書き変換を行うための設定: | |
" " 活用しない語 | |
lmap <silent> 18 <C-G>u<C-R>=tcvime#InputPostConvert(1, 0)<CR> | |
lmap <silent> 28 <C-G>u<C-R>=tcvime#InputPostConvert(2, 0)<CR> | |
lmap <silent> 38 <C-G>u<C-R>=tcvime#InputPostConvert(3, 0)<CR> | |
lmap <silent> 48 <C-G>u<C-R>=tcvime#InputPostConvert(4, 0)<CR> | |
lmap <silent> 58 <C-G>u<C-R>=tcvime#InputPostConvert(5, 0)<CR> | |
lmap <silent> k0 <C-R>=tcvime#InputConvertKatakana(0)<CR> | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment