{"id":15648012,"url":"https://github.com/stefanscherer/dotfiles","last_synced_at":"2025-04-14T00:23:42.893Z","repository":{"id":13946124,"uuid":"16646107","full_name":"StefanScherer/dotfiles","owner":"StefanScherer","description":"My dotfiles for Mac / Linux boxes and WSL","archived":false,"fork":false,"pushed_at":"2025-03-21T13:57:09.000Z","size":1009,"stargazers_count":43,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-29T17:36:33.419Z","etag":null,"topics":["dotfiles","linux","macos","wsl-ubuntu","wsl2"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefanScherer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-08T15:33:11.000Z","updated_at":"2025-03-21T13:57:13.000Z","dependencies_parsed_at":"2024-10-03T12:22:48.746Z","dependency_job_id":"aa84dc14-3f71-4fa0-aa13-a1facfe5bc09","html_url":"https://github.com/StefanScherer/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/StefanScherer%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanScherer","download_url":"https://codeload.github.com/StefanScherer/dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248800080,"owners_count":21163404,"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":["dotfiles","linux","macos","wsl-ubuntu","wsl2"],"created_at":"2024-10-03T12:22:42.093Z","updated_at":"2025-04-14T00:23:42.853Z","avatar_url":"https://github.com/StefanScherer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles\n\nAdd some tweaks into current Unix/Ubuntu user's home directory.\nInspired by \u003chttps://github.com/paulirish/dotfiles\u003e for MacOS.\nFor Windows I prefer my \u003chttps://github.com/StefanScherer/dotfiles-windows\u003e.\n\nThis is what the terminal looks like\n\n![dotfiles.png](images/dotfiles.png)\n\n# Installation\n    git clone https://github.com/StefanScherer/dotfiles \u0026\u0026 cd dotfiles \u0026\u0026 ./sync.sh\n\nTo update later on, just run the sync.sh again.\n\nThe usage of sync.sh is\n\n```\nsync.sh [--all|-a] [--force|-f]\n\n--all|-a     install all tools, also YouCompleteMe (big dependencies)\n--force|-f   force overwriting files in $HOME\n```\n\n### Tools\n\n* [autoenv](https://github.com/kennethreitz/autoenv) - Directory-based environments\n* **addtime**: show relative time stamp in stdout of another tool.\n  Usage: anothertool | addtime\n* **timeref**: show relative time diffs in logfile.\n  Usage: timeref logfile | gvim -\n* `Fn + F12`: toggle One Dark/Light theme in terminal\n* **t**: toggle Dark Mode of macOS and Windows from WSL\n* **whoseport**: Who is running that port?\n* **z**: \"z foo\" - cd to most frecent dir matching foo\n\n### Aliases\n\n* **..**: one dir up\n* **...**: two dirs up\n* **....**: three dirs up\n* **.....**: four dirs up\n* **~**: go into users home directory\n* **eachdir**: start a command for all sub directories\n* **gi**: create `.gitignore` file, see [gitignore.io](https://gitignore.io)\n* **gitcloneall**: clone all repos of an organization or user\n  ```\n  Usage: gitcloneall git@github.com:YOUR_ORG [user[:pass]]\n  Clones all repos of a GitHub org or user.\n\n  gitcloneall git@github.com:StefanScherer\n  gitcloneall git@github.com:myorg myuser:password_to_access_private_repos\n  ```\n* **gitall**: start a git command for all sub directories\n  ```\n  gitall pull\n\n  vi */README.md\n\n  gitall add README.md\n  gitall commit -m \"updated README.md\"\n  gitall push\n  ```\n* **gitls**: show git status of all repos in current dir, you may add args like in `ls` to filter dirs\n  ![gitls.png](images/gitls.png)\n* **git undo-commit**: undo last commit, as it says\n* **hosts**: edit your hosts file\n* **logvi logfile**: view a log file with relative times in gvim\n* **ssh-me**: copy my SSH key to remote machine and install my dotfiles there\n\n### Docker\n\n* **dps**: like `docker ps`, but with less columns\n* **dm**: docker-machine shortener: `dm dev` or `dm start dev` or `dm ip dev` ...\n  * **dm dev**  is a shortcut for `eval $(docker-machine env dev)`\n  * also integrates my [windows-docker-machine](https://github.com/StefanScherer/windows-docker-machine)'s 2016, 1709 and insider using Vagrant to start/stop them\n  * also integrates my [docker-windows-azure](https://github.com/StefanScherer/docker-windows-azure) machines az2016 and az1709 using azure cli to start/stop them\n\n### VIM\n\n* installs **Vundle** and some other stuff\n* **EditorConfig**\n\n### VIM commands\n\n* `,c`: show trailing white space\n* `,ss`: strip trailing white space\n* `,e`: format JavaScript code with esformatter (`npm install -g esformatter`)\n\n## Setup a new Mac box\n\nThe simplest way to setup a new Mac box is to download and run the `setup-mac` script.\n\n```\ncurl https://raw.githubusercontent.com/StefanScherer/dotfiles/master/setup-mac | bash\n```\n\ncheck_macos_updated\ninstall_brew\ninstall_dotfiles\ninstall_terminal_profiles\ninstall_brew_packages\n\n1. It will run all macOS updates before it installs anything. Maybe you have to run it again after installing updates and rebooting the machine.\n1. It install `brew`\n1. It clones this dotfiles repo and executes the `sync.sh` script to install/update it\n1. It installs the One Dark/Light terminal profiles\n1. It installs all brew packages in `brew.txt`\n1. It installs all brew casks in `cask.txt`\n\nThings you have to do manually\n\n* Run `SizeUp` and enter the license\n* Insert your Vagrant VMware license\n\n# Licensing\nCopyright (c) 2014 Stefan Scherer\n\nMIT License, see LICENSE.txt for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanscherer%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanscherer%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanscherer%2Fdotfiles/lists"}