Skip to content

Instantly share code, notes, and snippets.

View pedrotcaraujo's full-sized avatar
:octocat:
undefined is not a function

Pedro Araujo pedrotcaraujo

:octocat:
undefined is not a function
View GitHub Profile

Docker Commands

Container logs

docker logs [container] -f

List all containers (only IDs)

.zshenv
[Read every time]
It is always sourced, so it should set environment variables which need to be updated frequently. PATH (or its associated counterpart path) is a good example because you probably don't want to restart your whole session to make it update. By setting it in that file, reopening a terminal emulator will start a new Zsh instance with the PATH value updated.
But be aware that this file is read even when Zsh is launched to run a single command (with the -c option), even by another tool like make. You should be very careful to not modify the default behavior of standard commands as it may break some tools which use them (by setting aliases for example). For sure, it is not forbidden as you know what you are doing.
.zprofile
[Read at login]