Created
November 12, 2015 06:49
-
-
Save sleexyz/19a7b5ded0cd288d624e 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
# Install homebrew | |
command -v brew > /dev/null 2&>1 || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install ranger | |
brew install ranger | |
# Add imgcat to ~/bin | |
test -d $HOME/bin || mkdir $HOME/bin | |
wget -O ~/bin/imgcat https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat | |
# Ranger init | |
ranger --copy-config=all | |
# Ranger config | |
sed -e "s/set\spreview_images\s.*$/set preview_images true/" ~/.config/ranger/rc.conf > ~/.tmp.tmp \ | |
&& mv ~/.tmp.tmp ~/.config/ranger/rc.conf && rm ~/.tmp.tmp | |
sed -e "s/set\spreview_images_method.*$/set preview_images_method iterm3/" ~/.config/ranger/rc.conf > ~/.tmp.tmp \ | |
&& mv ~/.tmp.tmp ~/.config/ranger/rc.conf && rm ~/.tmp.tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment