Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
copy dotfiles from home
~ $ ruby -rfileutils -e 'Dir[".*"].each {|x| FileUtils.copy(x,"./dotfiles") if File.file?x}'
~ $ ls -la dotfiles/ | sort -k9,9
total 82464
drwxr-xr-x 55 <user> staff 1760 Feb 14 08:04 .
drwxr-xr-x@ 230 <user> staff 7360 Feb 14 08:01 ..
-r-------- 1 <user> staff 7 Feb 14 08:04 .CFUserTextEncoding
-rw-r--r-- 1 <user> staff 45060 Feb 14 08:04 .DS_Store
-rw------- 1 <user> staff 228 Feb 14 08:04 .Xauthority
-rw-r--r-- 1 <user> staff 0 Feb 14 08:04 .aesh_aliases
-rw-r--r-- 1 <user> staff 41797443 Feb 14 08:04 .babel.json
-rw------- 1 <user> staff 16392 Feb 14 08:04 .bash_history
-rw-r--r-- 1 <user> staff 5872 Feb 14 08:04 .bash_profile
-rw-r--r-- 1 <user> staff 5514 Feb 14 08:04 .bash_profile.backup
-rw-r--r-- 1 <user> staff 6363 Feb 14 08:04 .bashrc
-rw-r--r-- 1 <user> staff 2983 Feb 14 08:04 .dbshell
-rw-r--r-- 1 <user> staff 110 Feb 14 08:04 .eclipse_keyring
-rw------- 1 <user> staff 16 Feb 14 08:04 .emulator_console_auth_token
-rw-r--r-- 1 <user> staff 139 Feb 14 08:04 .gemrc
-rw------- 1 <user> staff 40 Feb 14 08:04 .git-credentials
-rw-r--r-- 1 <user> staff 457 Feb 14 08:04 .gitconfig
-rw-r--r-- 1 <user> staff 94 Feb 14 08:04 .gitflow_export
-rw-r--r-- 1 <user> staff 13 Feb 14 08:04 .gitignore_global
-rw-r--r-- 1 <user> staff 89 Feb 14 08:04 .grails_history
-rw-r--r-- 1 <user> staff 163 Feb 14 08:04 .guard_history
-rw-r--r-- 1 <user> staff 1379 Feb 14 08:04 .h2.server.properties
-rw-r--r-- 1 <user> staff 27 Feb 14 08:04 .hgignore_global
-rw------- 1 <user> staff 2445 Feb 14 08:04 .irb-history
-rw------- 1 <user> staff 23 Feb 14 08:04 .jboss-cli-history
-rw------- 1 <user> staff 199 Feb 14 08:04 .lesshst
-rw-r--r-- 1 <user> staff 4437 Feb 14 08:04 .mdqlstyle.css
-rw-r--r-- 1 <user> staff 201 Feb 14 08:04 .mkshrc
-rw------- 1 <user> staff 0 Feb 14 08:04 .mongorc.js
-rw-r--r-- 1 <user> staff 67 Feb 14 08:04 .netrc-prova
-rw-r--r-- 1 <user> staff 959 Feb 14 08:04 .node_path
-rw------- 1 <user> staff 45643 Feb 14 08:04 .node_repl_history
-rw------- 1 <user> staff 269 Feb 14 08:04 .npmrc
-rw-r--r-- 1 <user> staff 1032 Feb 14 08:04 .profile
-rw-r--r-- 1 <user> staff 7242 Feb 14 08:04 .pry_history
-rw------- 1 <user> staff 7 Feb 14 08:04 .python_history
-rw-r--r-- 1 <user> staff 266 Feb 14 08:04 .recently-used
-rw------- 1 <user> staff 1024 Feb 14 08:04 .rnd
-rw-r--r-- 1 <user> staff 29 Feb 14 08:04 .rvmrc
-rw-r--r-- 1 <user> staff 4811 Feb 14 08:04 .scala_history
-rw------- 1 <user> staff 113 Feb 14 08:04 .sh_history
-rw------- 1 <user> staff 2029 Feb 14 08:04 .sqlite_history
-rw-r--r-- 1 <user> staff 0 Feb 14 08:04 .stCommitMsg
-rw-r--r-- 1 <user> staff 6789 Feb 14 08:04 .v8flags.3.28.73.ronda.json
-rw-r--r-- 1 <user> staff 9288 Feb 14 08:04 .v8flags.5.1.281.81.ronda.json
-rw-r--r-- 1 <user> staff 4397 Feb 14 08:04 .v8flags.6.8.275.32-node.52.d791d6ba29d0687bbb5086f11d35af98.json
-rw-r--r-- 1 <user> staff 4575 Feb 14 08:04 .v8flags.7.0.276.38-node.17.d791d6ba29d0687bbb5086f11d35af98.json
-rw-r--r-- 1 <user> staff 30916 Feb 14 08:04 .vimfuzzyfinder
-rw------- 1 <user> staff 32930 Feb 14 08:04 .viminfo
-rw-r--r-- 1 <user> staff 5548 Feb 14 08:04 .vimrc
-rw-r--r-- 1 <user> staff 4860 Feb 14 08:04 .vimxrc
-rw-r--r-- 1 <user> staff 116 Feb 14 08:04 .yarnrc
-rw-r--r-- 1 <user> staff 118 Feb 14 08:04 .zlogin
-rw-r--r-- 1 <user> staff 57 Feb 14 08:04 .zprofile
-rw-r--r-- 1 <user> staff 553 Feb 14 08:04 .zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.