色々共有できる状態にしておくと便利な小物類を アップしておく。
Last active
September 11, 2015 03:00
-
-
Save tamamushi/4358ca63e40862aaf242 to your computer and use it in GitHub Desktop.
色々便利な設定ファイル置き場とか
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
| #!/bin/sh | |
| ## | |
| ## /etc/profile.d/nodebrew.sh | |
| ## | |
| export NODEBREW_ROOT="${HOME}/.nodebrew" | |
| if [ -d "${NODEBREW_ROOT}" ]; then | |
| export PATH=${NODEBREW_ROOT}/current/bin:$PATH | |
| fi | |
| ## 【インストールバージョン確認】 | |
| ## $ nodebrew ls-remote | |
| ## | |
| ## 【node.jsのインストール】 | |
| ## $ nodebrew install 2.7.10 | |
| ## | |
| ## インストール内容の確認 | |
| ## $ nodebrew list | |
| ## v0.11.11 | |
| ## | |
| ## current: v0.11.11 | |
| ## | |
| ## 特定のディレクトリで利用するnode.jsのバージョンを設定 | |
| ## $ cd hoge_dir | |
| ## $ nodoebrew use 0.11.11 | |
| ## | |
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
| #!/bin/sh | |
| ## | |
| ## /etc/profile.d/pyenv.sh | |
| ## | |
| export PYENV_ROOT="${HOME}/.pyenv" | |
| if [ -d "${PYENV_ROOT}" ]; then | |
| export PATH=${PYENV_ROOT}/bin:$PATH | |
| eval "$(pyenv init -)" | |
| fi | |
| ## 【インストールバージョン確認】 | |
| ## $ pyenv install -l | |
| ## | |
| ## 【pythonのインストール】 | |
| ## $ pyenv install 2.7.10 | |
| ## | |
| ## インストール内容の確認 | |
| ## $ pyenv versions | |
| ## system(set by /home/XXXXX/.pyenv/version) | |
| ## | |
| ## 【環境構築】 | |
| ## 仮想環境を構築する。構築するのみで設定しないと使用できない。 | |
| ## $ pyenv virtualenv 2.7.10 virtual_env(仮想環境名) | |
| ## | |
| ## 仮想環境を適用するディレクトリでpyenv localを実行して | |
| ## 仮想環境を適用する。 | |
| ## $ cd hoge_dir | |
| ## $ pyenv local virtual_env | |
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
| #!/bin/sh | |
| ## | |
| ## /etc/profile.d/rbenv.sh | |
| ## | |
| export RBENV_ROOT="${HOME}/.rbenv" | |
| if [ -d "${RBENV_ROOT}" ]; then | |
| export PATH="$RBENV_ROOT/bin:$PATH" | |
| eval "$(rbenv init -)" | |
| fi | |
| ## 【インストールバージョン確認】 | |
| ## インストール可能なrubyのバージョンを確認 | |
| ## $ rbenv install -l | |
| ## | |
| ## 【Rubyのインストール】 | |
| ## rubyをインストールし、グローバル設定を行う。 | |
| ## # rbenv install 2.2.3 | |
| ## # rbenv global 2.2.3 | |
| ## | |
| ## インストール内容の確認 | |
| ## $ rbenv versions | |
| ## 2.2.3-p173 (set by /home/XXXXX/.rbenv/version) | |
| ## | |
| ## 【設定の確認】 | |
| ## # ruby -v | |
| ## ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] | |
| ## | |
| ## 【環境構築】 | |
| ## rbenv localでディレクトリ固有のバージョンをを適用出来る。 | |
| ## $ cd hoge_dir | |
| ## $ rbenv local 2.2.3 | |
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
| "--------------------------- | |
| " Basic setting | |
| "--------------------------- | |
| "新しい行のインデントを現在業と同じにする | |
| set autoindent | |
| "バックアップファイルの保存ディレクトリ | |
| set backupdir=$HOME/.vim/ | |
| "行番号を表示する | |
| set number | |
| "閉じ括弧が入力された時、対応する括弧を強調する | |
| set showmatch | |
| "新しい行を作った時に高度な自動インデントを行う | |
| set smarttab | |
| syntax on | |
| set modeline | |
| set modelines=5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment