今日 http://connpass.com/event/3808/ に行ってきたが、そこでgithubの人が使ってたターミナルの画面がなにそれ!と思い、TwitterのTLを追っかけてたらどうやら「oh-my-zsh」というものらしい。

ほほうと思い、Bash版ないかなーと探してみたらあったので入れてみた。 > https://github.com/revans/bash-it 

kmori@kmori-MacBook-Pro:~$ git clone https://github.com/revans/bash-it.git ~/.bash_it
Cloning into '/Users/kmori/.bash_it'...
remote: Counting objects: 2597, done.
remote: Compressing objects: 100% (1597/1597), done.
remote: Total 2597 (delta 985), reused 2257 (delta 690)
Receiving objects: 100% (2597/2597), 557.20 KiB | 393 KiB/s, done.
Resolving deltas: 100% (985/985), done.
kmori@kmori-MacBook-Pro:~$
kmori@kmori-MacBook-Pro:~$ .bash_it/install.sh
Your original .bash_profile has been backed up to .bash_profile.bak
Copied the template .bash_profile into ~/.bash_profile, edit this file to customize bash-it
Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] n
Would you like to enable all, some, or no aliases? Some of these may make bash slower to start up (especially completion). (all/some/none) all
Would you like to enable all, some, or no plugins? Some of these may make bash slower to start up (especially completion). (all/some/none) all
Would you like to enable all, some, or no completion? Some of these may make bash slower to start up (especially completion). (all/some/none) all
kmori@kmori-MacBook-Pro:~$ 
とりあえずREADMEに書いてある通りにぶっこんだ。
ただ途中で「お前jekyll使うん?しらねーなら'n'って答えろや」って言われるので、すいません。しらねーすってことでnにしてあとはall。

で、.bash_profileの中いじれって言われるので、適当にやっておいた。
ダメならあとでまた直す。
※  (it automatically backs up your ~/.bash_profile) って言ってて、勝手にバックアップをとってくれます。
kmori@kmori-MacBook-Pro:~$ cat ~/.bash_profile
#!/usr/bin/env bash
# Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
# Add rvm gems and nginx to the path
export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin
# Path to the bash it configuration
export BASH_IT=$HOME/.bash_it
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='bobby'
# Your place for hosting Git repos. I use this for private repos.
export GIT_HOSTING='git@git.domain.com'
# Set my editor and git editor
export EDITOR="subl"
export GIT_EDITOR='subl'
# Set the path nginx
#export NGINX_PATH='/opt/nginx'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
#export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/xvzf/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
# Load Bash It
source $BASH_IT/bash_it.sh
kmori@kmori-MacBook-Pro:~$
んで、sourceする
kmori@kmori-MacBook-Pro:~$ source .bash_profile
-bash: /usr/local/share/chruby/chruby.sh: No such file or directory
-bash: /usr/local/share/chruby/auto.sh: No such file or directory
-bash: /usr/local/share/chruby/chruby.sh: No such file or directory
sorry, the z plugin is incompatible with the fasd plugin. you may use either, but not both.
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → 
お!きた!と思いきやエラーが出てるな…ねーって言われてるし、zっていうプラグインがぶつかっててちゃんと動いてるか動いてないかよーわからん!って言われてる。めんどくさいので全部止める。
※ ↑のハイカラーはブログの為。本来とは異なります。

一覧で確認してみる。
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash-it show plugins
Plugin              Enabled?  Description
_xterm                [ ]     automatically set your xterm title with host and location info
base                  [x]     miscellaneous tools
battery               [x]     display info about your battery charge level
browser               [x]     render commandline output in your browser
chruby-auto           [x]     load chruby + auto-switching (from /usr/local/share/chruby)
chruby                [x]     load chruby                  (from /usr/local/share/chruby)
dirs                  [x]     directory stack navigation
extract               [x]     one command to extract them all...
fasd                  [x]     navigate "frecently" used files and directories
git                   [x]     git helper functions
hg                    [x]     hg helper functions
java                  [x]     Java and JAR helper functions
javascript            [x]     download jquery files into current project
jekyll                [x]     manage your jekyll site
latex                 [x]     use mactex
nginx                 [x]     manage your nginx service
node                  [x]     Node.js helper functions
nvm                   [x]     node version manager, as a bash function
osx                   [x]     osx-specific functions
python                [x]     alias "http" to SimpleHTTPServer
rbenv                 [x]     load rbenv, if you are using it
ruby                  [x]     adds "remove_gem" function
rvm                   [x]     load rvm, if you are using it
ssh                   [x]     ssh helper functions
subversion            [x]     svn helper functions
tmux                  [x]     make sure that tmux is launched in 256 color mode
tmuxinator            [x]     sources tmuxinator script if available
todo                  [x]
vagrant               [x]     set up vagrant autocompletion
virtualenv            [x]     virtualenvwrapper helper functions
z                     [x]     maintains a jump-list of the directories you actually use
                              z is DEPRECATED, use fasd instead
z_autoenv             [x]     source into environment when cding to directories

to enable a plugin, do:
$ bash-it enable plugin  <plugin name> -or- $ bash-it enable plugin all

to disable a plugin, do:
$ bash-it disable plugin <plugin name> -or- $ bash-it disable plugin all
ばしっとdisable!
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash-it disable plugin z
z disabled.
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash
bash     bash-it  bashbug
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash-it disable plugin chruby-auto
chruby-auto disabled.
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash-it disable plugin chruby
chruby disabled.
反映されてるか確認。
 |1.9.3-p194| kmori-MacBook-Pro in ~
○ → bash-it show plugins
Plugin              Enabled?  Description
_xterm                [ ]     automatically set your xterm title with host and location info
base                  [x]     miscellaneous tools
battery               [x]     display info about your battery charge level
browser               [x]     render commandline output in your browser
chruby-auto           [ ]     load chruby + auto-switching (from /usr/local/share/chruby)
chruby                [ ]     load chruby                  (from /usr/local/share/chruby)
dirs                  [x]     directory stack navigation
extract               [x]     one command to extract them all...
fasd                  [x]     navigate "frecently" used files and directories
git                   [x]     git helper functions
hg                    [x]     hg helper functions
java                  [x]     Java and JAR helper functions
javascript            [x]     download jquery files into current project
jekyll                [x]     manage your jekyll site
latex                 [x]     use mactex
nginx                 [x]     manage your nginx service
node                  [x]     Node.js helper functions
nvm                   [x]     node version manager, as a bash function
osx                   [x]     osx-specific functions
python                [x]     alias "http" to SimpleHTTPServer
rbenv                 [x]     load rbenv, if you are using it
ruby                  [x]     adds "remove_gem" function
rvm                   [x]     load rvm, if you are using it
ssh                   [x]     ssh helper functions
subversion            [x]     svn helper functions
tmux                  [x]     make sure that tmux is launched in 256 color mode
tmuxinator            [x]     sources tmuxinator script if available
todo                  [x]
vagrant               [x]     set up vagrant autocompletion
virtualenv            [x]     virtualenvwrapper helper functions
z                     [ ]     maintains a jump-list of the directories you actually use
                              z is DEPRECATED, use fasd instead
z_autoenv             [x]     source into environment when cding to directories

to enable a plugin, do:
$ bash-it enable plugin  <plugin name> -or- $ bash-it enable plugin all

to disable a plugin, do:
$ bash-it disable plugin <plugin name> -or- $ bash-it disable plugin all

 |1.9.3-p194| kmori-MacBook-Pro in ~
○ →

  おk。入り直した所、エラーもでなくなりました。やったー。


2-3分使った感じ初回の読み込みの所は若干つっかかる感じはあるもののかなりいい感じではある。
もうちょっといじってみようという気にはなる。

取り急ぎ。 

Add Comments

名前
 
  絵文字
 
 
プロフィール

john_doe_

Twitter
instagram(SnapWidget)
タグクラウド
  • ライブドアブログ