Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active June 5, 2020 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/3c4b91a825ba73ed87bdf99bfbbeb3d7 to your computer and use it in GitHub Desktop.
Save donchan922/3c4b91a825ba73ed87bdf99bfbbeb3d7 to your computer and use it in GitHub Desktop.
# GNU版のlsをインストールする
$ brew install coreutils
# Solarizedのlsカラーテーマをダウンロードする
$ git clone https://github.com/seebi/dircolors-solarized.git ~/.dircolors-solarized
# .bashrcに以下1行を追加する(lsでカラー表示するための設定)
$ vi ~/.bashrc
alias ls='gls --color=auto'
# .bash_profileに以下1行を追加する(好みのlsカラーテーマを読み込む)
$ vi ~/.bash_profile
eval `gdircolors ~/.dircolors-solarized/dircolors.256dark`
# 設定反映(ターミナルを開き直すでもOK)
$ source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment