4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Gitで管理しているdotfilesを一括でhomeディレクトリに張るワンライナー

Last updated at Posted at 2014-11-05

(2/24更新)
変更前のスクリプトでは,.i3.oh-my-zshが対象外になっており,よく正規表現を見たところこれでは動くはずがないことに気づきました.
以下修正後:
https://github.com/tokoro10g/dotfiles/blob/master/install.sh

cp -rs $(find $(pwd) -maxdepth 1 | grep -P '^.+\/\.(?!git)') $HOME

grepとか挟まずにやりたかったんですがそう甘くはないみたいですね…


(変更前)

cp -rs `pwd`/.[^.\(git\(ignore\)*\)]* $HOME
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?