{"id":21884181,"url":"https://github.com/fredsiika/piscine","last_synced_at":"2025-04-15T07:18:38.677Z","repository":{"id":51820135,"uuid":"146094041","full_name":"fredsiika/piscine","owner":"fredsiika","description":":wrench: 42 Silicon Valley Piscine ~/.macos configuration files and dot-files (.files) for iMac ","archived":false,"fork":false,"pushed_at":"2022-10-05T10:22:59.000Z","size":464,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T07:18:34.063Z","etag":null,"topics":["shell"],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/fredsiika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-25T12:37:31.000Z","updated_at":"2023-05-06T08:12:16.000Z","dependencies_parsed_at":"2023-01-19T07:45:19.205Z","dependency_job_id":null,"html_url":"https://github.com/fredsiika/piscine","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/fredsiika%2Fpiscine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredsiika%2Fpiscine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredsiika%2Fpiscine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredsiika%2Fpiscine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredsiika","download_url":"https://codeload.github.com/fredsiika/piscine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023745,"owners_count":21199961,"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":["shell"],"created_at":"2024-11-28T10:12:36.884Z","updated_at":"2025-04-15T07:18:38.652Z","avatar_url":"https://github.com/fredsiika.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fred Siika's Piscine Dotfiles\nDotfiles and iMac configuration\n---\n[![iTerm-screenshot](/iterm-screenshot.png)](https://asciinema.org/a/eU6brNyNJ3KMzQdw4mLq8iWiU?t=2:10)\n\n## Installation\n\n**Warning:** If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!\n\n### Using Git and the bootstrap script\nYou can clone the repository wherever you want (I like to keep it in `~/Piscine/dotfiles`). \nThe bootstrapper script will pull in the latest version and copy the files to your home folder.\n\n```bash\n# Clone this repository\ngit clone https://github.com/fredsiika/piscine.git \n\n# Move into the dotfiles directory\ncd piscine/dotfiles \n\n# To Update, start the bootstrap script\nsource bootstrap.sh\n```\n\n\nAlternatively, to update while avoiding the confirmation prompt:\n\n```bash\nset -- -f; source bootstrap.sh\n```\n\n### Git-free install\n\nTo install these dotfiles without Git:\n\n```bash\ncd; curl -#L https://github.com/fredsiika/piscine/tarball/master | tar -xzv --strip-component 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}\n```\n\nTo update later on, just run that command again.\n\n## Prevent / Fix NPM (Node Package Manager) Permission Errors\nDue to local environment configuration set by 42 Silicon's admins, we do not have 'sudoer' (root) access. Commands like ```bash\nchmod +x \u003cfile-name\u003e```do not work resulting in an **EACES** error when trying to install a node package globally. \nFortunately there's a workaround by changing the directory where npm is installed. \n\n**To minimize the chance of permissions errors, you can configure npm to use a different directory. In this example, it will be a hidden directory on your home folder.**\n\n1. Make a directory for global installations:\n```bash\nmkdir ~/.npm-global\n```\n\n2. Configure npm to use the new directory path:\n```bash\nnpm config set prefix '~/.npm-global'\n```\n\n3. Open or create a **~/.profile** file and add this line:\n ```bash\n export PATH=~/.npm-global/bin:$PATH\n ```\n4. Back on the command line, update your system variables:\n ```bashsource ~/.profile\n ```\n 5. On the command line, update your system variables:\n ```bash\n source ~/.profile\n ```\n 6. To test your new configuration, install a package globally without using `**sudo**`:\n ```bash\n npm install -g jshint\n ```\nInstead of steps 2-4, you can use the corresponding ENV variable (e.g. if you don’t want to modify **~/.profile** ):\n```bash\nNPM_CONFIG_PREFIX=~/.npm-global\n```\n\n[Here's the official tutorial from NPM](https://docs.npmjs.com/getting-started/fixing-npm-permissions).\n\n## Sensible macOS defaults\nWhen setting up a new Mac, you may want to set some sensible macOS defaults:\n```bash\n./.macos\n```\n## Feedback\n\nSuggestions/improvements\n[welcome](https://github.com/fredsiika/piscine/issues)!\n\n## Author\n[Fred Siika](https://github.com/fredsiika/)\u003cbr\u003e\nFollow @fredsiika on\n[Twitter](http://twitter.com/fredsiika) \u003cbr\u003e\n\n\n## Thanks to the following for inspiration.…\n* [Mathias Bynens](https://mathiasbynens.be/)\n* @ptb and [his _macOS Setup_ repository](https://github.com/ptb/mac-setup)\n* [Cătălin Mariș](https://github.com/alrra) and his [dotfiles repository](https://github.com/alrra/dotfiles)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredsiika%2Fpiscine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredsiika%2Fpiscine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredsiika%2Fpiscine/lists"}