Skip to content

Instantly share code, notes, and snippets.

@A
Created July 31, 2014 21:02
Show Gist options
  • Save A/a649f8d1220f5ff72659 to your computer and use it in GitHub Desktop.
Save A/a649f8d1220f5ff72659 to your computer and use it in GitHub Desktop.
➜ ~ cat ~/.dotfiles/bin/dotfiles-test
#!/bin/bash
echo 'hello world'
➜ ~ echo $PATH
/usr/local/share/npm/bin/:~/.dotfiles/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
➜ ~ dotfiles-test
zsh: command not found: dotfiles-test
➜ ~ bash
bash-3.2$ source .exports
bash-3.2$ echo $PATH
/usr/local/share/npm/bin/:~/.dotfiles/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin/:~/.dotfiles/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
bash-3.2$ dotfiles-test
hello world
bash-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment