Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symlink ~.zshrc (in oh-my-zsh)

If my .zshrc file is ~/.dotfiles/zsh/.zshrc, how can I create a symlink so that the file appears as ~/.zshrc?

like image 356
Astephen2 Avatar asked Jul 30 '13 00:07

Astephen2


2 Answers

The cd step in Alexej's answer isn't needed as you can call ln -s target destination explicitly.

ln -s ~/.dotfiles/zsh/.zshrc ~/.zshrc
like image 102
Aaron Cronin Avatar answered Oct 17 '22 04:10

Aaron Cronin


run:

cd ~/ ; ln -s ~/.dotfiles/zsh/.zshrc
like image 22
Alexej Magura Avatar answered Oct 17 '22 06:10

Alexej Magura