Windows Bashrc !free! ❲1080p❳
# ~/.bashrc for Windows alias ll='ls -la' alias ..='cd ..' alias c='clear' Open current folder in File Explorer alias explore='start .' Open a file with default Windows app alias open='start ""' Git shortcuts alias gs='git status' alias ga='git add .' alias gc='git commit -m' alias gp='git push' Python on Windows (if using regular Python, not WSL) alias py='winpty python' Custom prompt (shows Git branch if in a repo) parse_git_branch() sed -e '/^[^ ]/d' -e 's/ (.*)/ (\1)/'
| Environment | Config file location | |-------------|----------------------| | (Git for Windows) | ~/.bashrc (usually C:\Users\YourName\.bashrc ) | | WSL (Windows Subsystem for Linux) | ~/.bashrc inside the Linux distro | | MSYS2 / Cygwin | ~/.bashrc | windows bashrc
Your fingers will thank you the first time you type ll instead of ls -la . Do you use a .bashrc on Windows? Share your favorite alias in the comments. If you’ve just moved from macOS or Linux
If you’ve just moved from macOS or Linux to Windows (or you’re dual-booting), one of the first things you’ll miss is your trusty .bashrc . That one file where you store aliases, custom prompts, and environment variables. You just need to know where to look
The good news: Windows does support a .bashrc equivalent. You just need to know where to look. There are three common Bash environments on Windows:
export PS1="\u@\h \w[\033[32m]$(parse_git_branch)[\033[00m] $ " After editing .bashrc , run: