I am trying to define some aliases in cygwin, but with no success. I am doing so like this at the end of the .bashrc
file.
alias foo=\'pwd\'
This is working for me On windows 10 with Cygwin64. Don't worry "kubectl" is just the program that I want to run when I type "k". restart Cygwin terminal after the change.
Smith@NB-Smith-3 ~ echo "alias k=C:/Users/Smith/kube/kubectl" >> $HOME/.bash_profile
changes this file C:\cygwin64\home\Smith.bash_profile