Skip to content

Shell

Startup scripts

.zshenv

  • always run
  • set search path, important vars

.zshrc

  • run on interactive shells
  • include ohmyzsh theme etc

.zshlogin, .zshprofile, .zlogout

  • not used by us
  • to set terminal type, display message of the day, etc

/etc/zsh/*

  • system-wide versions

bash .profile

  • run in login shell

.bashrc

  • run in interactive shells only
  • (no .profile executed)

/etc/profile.d

  • on Ubuntu, the scripts in this directory are only run on login shells, so not for terminals started from Gnome

oh my zsh

  • custom theme: sets shell prompt
  • apps/oh-my-zsh/completions: automatically loaded autocompletions, added via .zshrc