
次のコマンドが有効です。
% pwd
/home/ismail/.dotfiles/.common-dotfiles
% stow --target=/home/ismail/.dotfiles/test .
ただし、次のコマンドは機能しません。
stow --target=/home/ismail/.dotfiles/test --dir=/home/ismail/.dotfiles/.common-dotfiles
エラーが発生します。
stow: No packages to stow or unstow
.を使用する代わりに、stowにソースリンクを提供するにはどうすればよいですか?
答え1
ロードするときに何をロードするかアンロードするかを指定する必要があります。--dir
オプションを使用する--target
と、パッケージを見つける場所とリンクする場所を教えてくれるだけstow
で、何をすべきかを教えてくれません。
あなたの場合、次のいずれかが行われます。
stow --target="$HOME/.dotfiles/test" --dir="$HOME/.dotfiles/.common-dotfiles" .
stow --target="$HOME/.dotfiles/test" --dir="$HOME/.dotfiles" .common-dotfiles
.common-dotfiles
(私は個人的に2番目のオプションを好みます。2番目のオプションは保存されたパッケージを参照しますが、"$HOME/.dotfiles"
最初のバリエーションは"$HOME/.dotfiles/.common-dotfiles"
パッケージを含むディレクトリを参照するためです)。
(or) を使用してstow
特定のパッケージをアーカイブしたいことを明示的に表すこともできます。--stow
-S
stow --target="$HOME/.dotfiles/test" --dir="$HOME/.dotfiles" --stow .common-dotfiles