Skip to content

Instantly share code, notes, and snippets.

@tmyt
Last active March 25, 2018 12:58
Show Gist options
  • Save tmyt/3bb7b681ff0bae53d4f5a286c63b49f1 to your computer and use it in GitHub Desktop.
Save tmyt/3bb7b681ff0bae53d4f5a286c63b49f1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Make symbolic link
userprofile=$(cmd.exe /C set | grep -i '^userprofile=' | cut -d '=' -f 2 | tr '\\' '/' | tr -d ':' | tr -d '[:cntrl:]')
ln -s /mnt/${userprofile,} ~/Profile
ln -s ~/Profile/Documents ~/Documents
ln -s ~/Profile/Downloads ~/Downloads
ln -s ~/Profile/Desktop ~/Desktop
# configure bash
echo 'set completion-ignore-case on' >> ~/.inputrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment