Skip to content

Instantly share code, notes, and snippets.

@Voronoff

Voronoff/.bashrc

Last active Aug 25, 2017
Embed
What would you like to do?
Bash on Ubuntu on Windows configuration
#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 
#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