Skip to content

Instantly share code, notes, and snippets.

@nilsding
Last active April 23, 2017 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsding/2ca6fcf972486449e655 to your computer and use it in GitHub Desktop.
Save nilsding/2ca6fcf972486449e655 to your computer and use it in GitHub Desktop.
The Windows user friendly .bashrc™
# The Windows user friendly .bashrc™
# (c) 2013-2014 nilsding
# License: public domain
# Feel free to fuck around with this.
# Test for an interactive shell.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# muh version
ver() {
echo "Microsoft `uname -s` [Version `uname -r`]"
echo "Copyright (c) `date +%Y` Microsoft Corporation. All rights reserved."
echo ""
}
ver
# best prompt ever!
PS1='C:`echo -n ${PWD} | sed "s,/,\x5C,g"`>'
# get rid of any aliases, Windows command line programs never have heard of colours.
unalias ls
unalias grep
alias dir='ls -l'
alias ls='dir'
alias del='rm'
alias copy='cp'
alias move='mv'
alias ren='mv'
alias type='cat'
alias cls='clear'
alias help='man'
alias cmd='bash'
alias cmd.exe='cmd'
alias edit='nano'
command_not_found_handle() {
echo "Bad command or file name"
return 127
}
@KarimGeiger
Copy link

How do I run .exe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment