1. X
  2. 🔎Julia Evans🔍
Log inSign up
🔎Julia Evans🔍
25K posts
user avatar
🔎Julia Evans🔍
@b0rk
find me on Mastodon or Bluesky
Montreal
jvns.ca
Joined June 2007
574
Following
192.5K
Followers
RepliesRepliesMediaMedia

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • user avatar
    🔎Julia Evans🔍
    @b0rk
    Oct 20, 2024
    I'm b0rk.jvns.ca on bluesky, @[email protected] on mastodon
    24K
  • user avatar
    🔎Julia Evans🔍
    @b0rk
    Oct 15, 2024
    PATH tips wizardzines.com/comics/path-ti…
    panel 1: add a directory to your PATH

at the end:

export PATH=$PATH:/my/dir

at the beginning:

export PATH=/my/dir/:$PATH

in fish:

set -e PATH $PATH /my/dir

panel 2: you shell's config file

bash: .bashrc or .bash_profile (exactly which one is a bit of a rabbit hole sadly)

zsh: ~/.zshrc

fish: ~/.config/fish/config.fish

panel 3: show what your shell is actually going to do when you run the program

type python3

instead of running what's in PATH, sometimes it'll run a builtin or alias or cached entry

panel 4: show the first match on your PATH for a program

which python3

panel 5: show ALL matches on your PATH for a program, in order

which -a python3

panel 6: look at your PATH

echo $PATH

panel 7: show each entry on its own line

echo $PATH | tr ':' '\n'

panel 8: clear the PATH cache (bash/zsh)

hash -r

why you might need to do this: bash and zsh cache PATH lookups, so sometimes updating your PATH doesn't work properly
    37K
  • user avatar
    🔎Julia Evans🔍
    @b0rk
    Oct 2, 2024
    terminal colours are tricky jvns.ca/blog/2024/10/0…
    27K
  • user avatar
    🔎Julia Evans🔍
    @b0rk
    Sep 28, 2024
    some Go web dev notes
    jvns.ca
    Some Go web dev notes
    45K
  • user avatar
    🔎Julia Evans🔍
    @b0rk
    Sep 12, 2024
    reasons I still love the fish shell jvns.ca/blog/2024/09/1…
    21K