💻
Python, Terminal, And Related Topics
  • Introduction and Motivation
  • Terminal How-To's
    • Running Python and Shell scripts in Terminal, and passing arguments
    • Delete Many Folders At Once in Python
    • iTerm Download and Customization
    • Environments & Installing a Python Package in Editable Mode
    • Git Useful Commands, and Tricks
    • Special Dot Files
  • Python Snippets
Powered by GitBook
On this page
  1. Terminal How-To's

Special Dot Files

.zshrc .zprofile .bash_profile

PreviousGit Useful Commands, and TricksNextPython Snippets

Last updated 2 years ago

I'm using Mac with z-shell.

cat ~/.zshrc to see what you already have. Conda uses this one, and you can store your aliases and terminal functions in here. e.g alias ll = ls -la This is also where you want to store source commands to run .sh files or .zsh files.

~/.zprofile to store commands you need to be ran at every terminal session start. e.g. you have a proxy to turn on or something like that.

I don't use ~/.bash_profile anymore, it's for the older Mac shell.

Terminal functions, aliases, dot files etc. are whole topics on their own. There are some posts to illustrate the difference between the dot files, here's one for example

https://apple.stackexchange.com/questions/388622/zsh-zprofile-zshrc-zlogin-what-goes-where