F# Monkey

about

Setting of Bash

.inputrc

bashの操作をviの操作に近づけます

// create .inputrc file
$ vim .inputrc

// in vim
set editing-mode vi
set show-all-if-ambiguous on
set completion-ignore-case on

set keymap vi-command
    "\C-p": history-search-backward
    "\C-n": history-search-forward

set keymap vi-insert
    "\C-p": history-search-backward
    "\C-n": history-search-forward
    "\C-h": backward-char
    "\C-l": forward-char

// check editing-mode
$ set -o | grep -E '(emacs|vi)'
emacs           off
privileged      off
vi                on

// check command
$ bind -p

.bashrc

promptの表示をgitbrunchを表示するようにします

#!/bin/bash

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# http://qiita.com/caad1229/items/6d71d84933c8a87af0c4
function parse_git_branch {
    git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/'
}

function promps {
    local BLUE='\[\033[01;34m\]'
    local RED='\[\033[01;31m\]'
    local GREEN='\[\033[01;32m\]'
    local WHITE='\[\033[0;00m\]'
    local GRAY='\[\033[01;37m\]'
    PS1="${BLUE}\W${GREEN}\$(parse_git_branch)${BLUE}\$${WHITE} "
}

PROMPT_COMMAND='promps'
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export EDITOR=nvim

.bash_profile

その他のいろいろな設定

if [ -e ~/.bashrc ]; then
        . ~/.bashrc
fi

export LANG=ja_JP.UTF-8
export LESSCHARSET=utf-8
GREP_OPTIONS="--color=always"; export GREP_OPTIONS

# PATH( left first )
p=""
p=$p'/usr/local/bin'
p=$p':/usr/local/sbin'
p=$p':/usr/sbin'
p=$p':/usr/bin'
p=$p':/bin'
p=$p':/sbin'

export PATH=$p

# NeoVim
export XDG_CONFIG_HOME=$HOME/.config
alias vim='nvim'

# Git
eval "$(hub alias -s)"
alias gittree='git log --oneline --graph --all --format="%x09 %Cred%h %Cgreen%cd %Cblue%s %d"'
source /usr/local/etc/bash_completion.d/hub.bash_completion.sh

# mono
export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig'
export AS="as -arch i386"
export CC="cc -arch i386 -framework CoreFoundation -lobjc -liconv"
export MONO_MANAGED_WATCHER=false
export MONO_IOMAP=all
export MONO_GAC_PREFIX="/usr/local"
unset USERNAME

# alias
alias rm='       rm -i'
alias loghttpd=' cd /var/log/httpd/$(date +%Y)/$(date +%m)/$(date +%d)/'
alias df='       df -h'
alias ll='       ls -la'
alias cd..='     cd ..'
alias tree='     tree -C'
alias lessc='lessc --clean-css'

location of files

上から順番に読み込みます
inpurtrcの読み込み場所はわかってません (^_^;;

/
├── etc
│   └── profile
└── Users/Kohei/
    ├── .inputrc       // ??? I don't know order .inputrc file.
    ├── .bash_login
    ├── .bash_profile
    ├── .bashrc
    └── .bash_logout 

Font

おこのみで

Mig 2M

Regular 13pt

Charactor Spacing: 0.85

Line Spacing: 0.95

Miguフォント : M+とIPAの合成フォント

Color Theme

おこのみで

BirdsOfParadise

github.com

Remove all ads