bash-it
bashを簡単にカスタマイズしてくれるライブラリ😇
https://github.com/Bash-it/bash-it
git clone
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
Installation
インストールシェルを実行
$ ~/.bash_it/install.sh
既存の.bash_profileをバックアップするかを聞かれるので y を入力
$ ~/.bash_it/install.sh
Installing bash-it
Would you like to keep your .bash_profile and append bash-it templates at the end? [y/N] y
Your original .bash_profile has been backed up to .bash_profile.bak
Bash-it template has been added to your .bash_profile
Enabling sane defaults
bash-it enabled with priority 350.
system enabled with priority 350.
base enabled with priority 250.
alias-completion enabled with priority 365.
general enabled with priority 150.
Installation finished successfully! Enjoy bash-it!
To start using it, open a new tab or 'source /Users/ysakui/.bash_profile'.
To show the available aliases/completions/plugins, type one of the following:
bash-it show aliases
bash-it show completions
bash-it show plugins
To avoid issues and to keep your shell lean, please enable only features you really want to use.
Enabling everything can lead to issues.
#alias設定
aliasの一覧表示
bash-it show aliases
aliasの有効化/無効化
to enable an alias, do:
$ bash-it enable alias <alias name> [alias name]... -or- $ bash-it enable alias all
to disable an alias, do:
$ bash-it disable alias <alias name> [alias name]... -or- $ bash-it disable alias all
#completion設定
completionの一覧表示
bash-it show completions
completionの有効化/無効化
to enable a completion, do:
$ bash-it enable completion <completion name> [completion name]... -or- $ bash-it enable completion all
to disable a completion, do:
$ bash-it disable completion <completion name> [completion name]... -or- $ bash-it disable completion all
#plugin設定
pluginの一覧表示
bash-it show plugins
pluginの有効化/無効化
to enable a plugin, do:
$ bash-it enable plugin <plugin name> [plugin name]... -or- $ bash-it enable plugin all
to disable a plugin, do:
$ bash-it disable plugin <plugin name> [plugin name]... -or- $ bash-it disable plugin all
#theme設定
theme一覧
https://github.com/Bash-it/bash-it/wiki/Themes
themeのプレビュー
BASH_PREVIEW=true reload
themeの変更
$ vim ~/.bash_profile
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='bobby'
$ reload