{"id":22372389,"url":"https://github.com/1chooo/dotfiles","last_synced_at":"2025-07-30T21:32:00.875Z","repository":{"id":162499038,"uuid":"526241766","full_name":"1chooo/dotfiles","owner":"1chooo","description":"Some scripts to enhance my DEV Env.","archived":false,"fork":false,"pushed_at":"2024-10-28T12:06:12.000Z","size":104,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T15:35:43.325Z","etag":null,"topics":["macos","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/1chooo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T14:18:15.000Z","updated_at":"2024-10-28T12:06:16.000Z","dependencies_parsed_at":"2024-03-29T18:26:48.639Z","dependency_job_id":"c304c0ef-2276-4278-8533-d7ecbe5760af","html_url":"https://github.com/1chooo/dotfiles","commit_stats":null,"previous_names":["1chooo/dotfiles"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1chooo","download_url":"https://codeload.github.com/1chooo/dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228189228,"owners_count":17882590,"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":["macos","shell","terminal"],"created_at":"2024-12-04T20:38:20.526Z","updated_at":"2024-12-04T20:38:21.441Z","avatar_url":"https://github.com/1chooo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Shell Setting\n\n```shell\nmy-dotfile\n├── vim\n│   └── bundle/\n├── git\n│   └── setup.sh\n├── .shellScripts\n│   └── runc\n├── oh-my-zsh/\n└── zsh\n```\n\n\n- [My Shell Setting](#my-shell-setting)\n  - [Vim](#vim)\n    - [press `\u003cf5\u003e` to execute the code](#press-f5-to-execute-the-code)\n  - [oh-my-zsh](#oh-my-zsh)\n  - [Shell Scripts](#shell-scripts)\n    - [Compile c/cpp](#compile-ccpp)\n\n## Vim\n\n### press `\u003cf5\u003e` to execute the code\n\nAdd this block of code in your `~/.vimrc`.\n```vim\nnmap \u003cF5\u003e :call CompileRun()\u003cCR\u003e\nfunc! CompileRun()\n  exec \"w\"\nif \u0026filetype == 'python'\n  exec \"!time python3 %\"\nelseif \u0026filetype == 'java'\n  exec \"!javac %\"\n  exec \"!time java %\u003c\"\nelseif \u0026filetype == 'cpp'\n  exec \"!runc %\"\nelseif \u0026filetype == 'c'\n  exec \"!runc %\"\nelseif \u0026filetype == 'sh'\n  :!time bash %\nendif\n  endfunc\n```\n\n## oh-my-zsh\n\n## Shell Scripts\n\n### Compile c/cpp\n```SHELL\n#!/bin/zsh\n\nif [[ \"$1\" == *.cpp ]]; then\n  output=\"${1%.cpp}\"\nelif [[ \"$1\" == *.c ]]; then\n\toutput=\"${1%.c}\"\nelse\n  output=\"$1\"\nfi\n\ngcc \"$output\".c -o \"$output\".out 2\u003e /dev/null || clang++ -std=c++17 -stdlib=libc++ \"$output\".cpp -o \"$output\".out 2\u003e /dev/null\n\n\"$PWD/$output\".out\n\nexit 0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1chooo%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1chooo%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1chooo%2Fdotfiles/lists"}