隠しファイルまでGUIでコピペ出来なかったので。bash_profileにエイリアスとして書いてしまいます。
bash_profileを開く
vi ~/.bash_profile
bash_profile内に実装する
function cp_all(){
cp -a $1/. $2
}
bash_profileを更新する
source ~/.bash_profile
引数1と2に、それぞれコピー元と、コピー先のパスを指定すればok
$ cp_all /Users/god/Desktop/aa /Users/god/Desktop/bb
これで .env
のような隠しファイルも全部一緒にコピーされる。
ps
ちなみに、下記のようにしておく mk
とか md
とかできるので便利。
function mk(){
vi ~/.bash_profile
}
function md(){
source ~/.bash_profile
}