DEV Community

Hilton Meyer
Hilton Meyer

Posted on • Originally published at hiltonmeyer.com on

VS Code Terminal Environment Variables

I enjoy using the VS Code integrated terminal. With the shortcut key Ctrl+ I can pull it up and hide it. I really like the way you can hide the panels and focus on the code easily. I've been running up against getting alias' working though. I had been putting them in the ~/.bash_profile file but it wasn't working. I finally decided to dig a bit deeper and found the answer, ~/.bashrc. This is great because I can now set my environment up and get shortcuts working, this is the example of my current setup:

alias develop="cd /c/applications"
alias glog="git log --pretty=oneline --graph --decorate --all"
alias glog_nomerge="git log --no-merges --oneline"
alias gpod="git pull --rebase origin develop"
alias gpush="git push origin develop"

Enter fullscreen mode Exit fullscreen mode

Top comments (0)