Last active
March 8, 2016 09:36
-
-
Save ssh0/94a50a02a45687a6cee2 to your computer and use it in GitHub Desktop.
コマンドラインで動かすファイルマネージャrangerの設定 ref: http://qiita.com/ssh0/items/fe85da119c93333ba34e
This file contains 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
sudo apt-get install ranger w3m lynx highlight atool mediainfo xpdf caca-utils | |
ranger --copy-config=all |
This file contains 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
brew install ranger w3m lynx highlight atool mediainfo xpdf libcaca imlib2 | |
ranger --copy-config=all |
This file contains 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
# ranger supports enhanced previews. If the option "use_preview_script" | |
# is set to True and this file exists, this script will be called and its | |
# output is displayed in ranger. ANSI color codes are supported. |
This file contains 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
function ranger() { | |
if [ -z "$RANGER_LEVEL" ]; then | |
/usr/local/bin/ranger $@ | |
else | |
exit | |
fi | |
} |
This file contains 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
# Compatible with ranger 1.5.3 through 1.7.* | |
# | |
# Change the prompt when you open a shell from inside ranger | |
# | |
# Add this line to your .bashrc for it to work. | |
[ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) ' |
This file contains 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
## Main prompt | |
build_prompt() { | |
RETVAL=$? | |
prompt_status | |
prompt_virtualenv | |
prompt_context | |
prompt_dir | |
prompt_git | |
prompt_ranger # <<< | |
prompt_hg | |
prompt_end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment