Skip to content

Instantly share code, notes, and snippets.

@kassick
Created July 27, 2016 14:54
Show Gist options
  • Save kassick/bccb8fd02adc3f190a013f741a906d5a to your computer and use it in GitHub Desktop.
Save kassick/bccb8fd02adc3f190a013f741a906d5a to your computer and use it in GitHub Desktop.
Odd zsh behaviour when chdir into symlinks
▶ cd
~
▶ file .oh-my-zsh
.oh-my-zsh: symbolic link to /home/kassick/Sources/dotfiles/dot/oh-my-zsh
~
▶ cd .oh-my-zsh
~/.oh-my-zsh master ✗ 5d ◒
▶ pwd
/home/kassick/.oh-my-zsh
~/.oh-my-zsh master ✗ 5d ◒
▶ ls ..
emacs.d gitconfig INSTALL_emacs.d.sh INSTALL_oh-my-zsh.sh INSTALL_thefuck.sh oh-my-zsh tmux.conf zshrc
# EXPECTED: my home dir ; RESULT: ~/Sources/dotfiles/dot
~/.oh-my-zsh master ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment