Last active
November 26, 2015 11:15
-
-
Save geraintwhite/64ce70529da0878d3363 to your computer and use it in GitHub Desktop.
Get ChromeOS file:// URL for files in crouton.
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
| function file-url { | |
| echo "file:///home/chronos/user$(echo $([ "$1" ] && readlink -e "$1" || pwd -P) | sed "s@$HOME@@")" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment