Last active
August 25, 2017 21:19
-
-
Save Voronoff/734ff481da773ba912585b2d8d282461 to your computer and use it in GitHub Desktop.
Bash on Ubuntu on Windows configuration
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
#additions | |
# For switching to mounted home easily | |
cd() { | |
if [[ $@ == "m~" ]]; then | |
command cd "/mnt/c/Users/david" | |
else | |
command cd "$@" | |
fi | |
} | |
# To start xming | |
xming() { | |
command Xming.exe :0 -clipboard -multiwindow & | |
} | |
# To open a file using Sublime, starting Xming if it isn't already running | |
subl () { | |
if [[ $(ps | grep Xming.exe) ]]; then | |
command subl "$@" | |
else | |
xming | |
command subl "$@" | |
fi | |
} | |
# Set the display to localhost for xming | |
export DISPLAY=localhost:0.0 |
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
#disable the bell sound on backspace | |
set bell-style none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment