Last active
April 23, 2017 15:04
-
-
Save nilsding/2ca6fcf972486449e655 to your computer and use it in GitHub Desktop.
The Windows user friendly .bashrc™
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
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I run .exe?