{"id":18310929,"url":"https://github.com/jimschubert/dotfiles","last_synced_at":"2025-04-05T18:31:46.311Z","repository":{"id":17638780,"uuid":"20443163","full_name":"jimschubert/dotfiles","owner":"jimschubert","description":"dotfiles I've ripped off","archived":false,"fork":false,"pushed_at":"2016-09-30T13:11:57.000Z","size":110,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T08:34:58.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimschubert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-03T13:13:37.000Z","updated_at":"2019-07-11T17:17:54.000Z","dependencies_parsed_at":"2022-09-24T17:56:19.289Z","dependency_job_id":null,"html_url":"https://github.com/jimschubert/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimschubert","download_url":"https://codeload.github.com/jimschubert/dotfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247383886,"owners_count":20930365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T16:15:56.105Z","updated_at":"2025-04-05T18:31:45.697Z","avatar_url":"https://github.com/jimschubert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles\n\nYeah, I joined the club.\n\nThese are my dotfiles so I can have my favorite configuration when I move to another environment.\n\nI've pulled a lot from other places and mixed with my own configuration. You're welcome to use any of it.\n\nPlaces I've pulled from:  \n\n * [@ryanb](https://github.com/ryanb/dotfiles)\n * [@mathiasbynens](https://github.com/mathiasbynens/dotfiles)\n * [@gf3](https://github.com/gf3/dotfiles)\n\nI think I've got a pretty good setup.  Be sure to check out the three above.\n\n# Installation\n\nCaveat: if you're installing this to a non-new environment, be sure to run a backup and make sure it works.\n\n    git clone git@github.com:jimschubert/dotfiles.git ~/.dotfiles\n    cd ~/.dotfiles\n    rake backup\n    cd ~/.dotfiles-backup/[TAB TAB]\n\nIf your files are not backed up, please either manually backup or edit the script. This script is _*destructive*_.\n\n\nRun `bootstrapper.sh` and it will complain about missing dependencies or favorite programs.\n\nThe quick `apt-get`:\n\n`sudo apt-get install ruby trash-cli git mercurial vim vim-doc vim-common vim-gui-common tree rake rubygems ruby-bundler curl`\n\nThis will get everything installed and ready for the configuration.\n\nAfter the default ruby is installed, install rvm to manage different versions:\n\n```\n\\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby\necho \"source $HOME/.rvm/scripts/rvm\" \u003e\u003e ~/.bash_profile\n```\n\nAfter installing rvm, in gnome-terminal you will need to go to your profile preferences, select the *Title and Command* tab and check *Run command as a login shell*\n\nIf you're not interested in all of the ruby gems, do a `mv Gemfile Gemfile.bak` before this block:\n\n```\nsource ~/.bash_profile\nrvm install 1.9.3 \u0026\u0026 rvm use 1.9.3\ngem install bundler\n./bootstrap.sh\nsource ~/.bashrc\n```\n\n_Dance_\n\n## Cygwin\n\nTo install in cygwin, you'll need the most recent ruby package. Manually install rubygems using curl/wget/other method:\n\n    mkdir -p ~/Downloads \u0026\u0026 cd ~/Downloads\n    curl http://rubyforge.org/frs/download.php/76073/rubygems-1.8.24.tgz\n    tar zxf rubygems-1.8.24.tgz \u0026\u0026 cd rubygems-1.8.24\n    ruby setup.rb install\n    gem install rake\n\nAfterward, you may need to remove the dependency checks for trash/tree which are not currently in the cygwin repo.  To do this, \ncomment out the lines in `bootstrapper.sh` (lines 40 and 42):\n\n    # dep \"tree\" \"1.5\"\n    dep \"rake\" \"0.8.7\"\n    dep \"gem\" \"1.7.2\"\n    dep \"bundle\" \"1.0.15\"\n    # dep \"trash\" \"0.1.1\"\n\nAfter running `bootstrapper.sh`, be sure to execute `source ~/.bashrc` and the dotfiles should be loaded.  Also be sure to check \nthe bash aliases to be sure trash/tree are not referenced if you have commented the lines above.\n\n# Bash\n\n    $ tree ~/.bash\n    /home/jim/.bash\n    ├── aliases\n    ├── completions\n    ├── completion_scripts\n    │   └── git_completion\n    ├── config\n    ├── functions\n    ├── paths\n    └── prompt\n\nThe above files are loaded by `.bashrc`. The files are pretty self-explanatory, other than `prompt` which colorizes the bash prompt with tweaks for git.\n\n## Cool Aliases\n\n * cd : pushd\n * bd : popd\n * cd..  | ..   : back one directory\n * cd... | ...  : back two directories\n * ^ up to five directories\n * rm : trash\n * undopush\n * ip\n * GET | HEAD | POST | PUT | DELETE | TRACE | OPTIONS\n\n## Config\n\n * sets editor to vim\n * sets English/UTF-8\n * sets manpager\n * sets commands to ignore in history\n * sets noclobber (e.g. prevents `cat \u003e IMPORTANT_FILE` mistakes )\n * sets nocaseglob (e.g. `ls ~/.B*` will list contents of `~/.bash`)\n\n## Functions\n\nThe two functions, `md` and `c` may not seem like much, but they simplify some commands. For example:\n    \n    $ md projects; git clone git@github.com:jimschubert/dotfiles.git \u0026\u0026 cd dotfiles\n\nIn the above line, `md` will create the projects directory and `cd` into it.\n\n`c` stands for 'code' and  works like this:\n\n    jim at computer in ~\n    $ pwd\n    /home/jim\n    jim at computer in ~\n    $ c dotfiles\n    ~/projects/dotfiles ~\n    jim at computer in ~/projects/dotfiles on master\n    $\n\nYou can change it to whatever shortcut and issue `reload`, which is also an alias from this setup.\n\n### HTTP Functions\n\n`curl` provides some weird output when you try to pipe the output.  For instance, when working with a couchdb install, and the `json` function in *.bash/functions*, you would receive statistics:\n\n\tjim at schubert in ~/temp\n\t$ curl -X GET $HOST\n\t{\"couchdb\":\"Welcome\",\"version\":\"1.0.1\"}\n\tjim at schubert in ~/temp\n\t$ curl -X GET $HOST | json\n\t  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n\t\t                         Dload  Upload   Total   Spent    Left  Speed\n\t100    40  100    40    0     0   9789      0 --:--:-- --:--:-- --:--:-- 13333\n\t{\n\t    \"couchdb\": \"Welcome\", \n\t    \"version\": \"1.0.1\"\n\t}\n\nUsing the tip from [Dennis Williamson's answer on superuser.com](http://superuser.com/questions/173209/curl-how-to-suppress-strange-output-when-redirecting), the couch-x functions can easily be piped through the `json` function.  For instance, here's the output similar to the previous commands:\n\n\tjim at schubert in ~/.bash\n\t$ couch-get $HOST\n\t{\"couchdb\":\"Welcome\",\"version\":\"1.0.1\"}\n\tjim at schubert in ~/.bash\n\t$ couch-get $HOST | json\n\t{\n\t    \"couchdb\": \"Welcome\", \n\t    \"version\": \"1.0.1\"\n\t}\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimschubert%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Fdotfiles/lists"}