{"id":20592381,"url":"https://github.com/valodim/zshrc","last_synced_at":"2025-06-12T15:32:58.870Z","repository":{"id":138952238,"uuid":"2115681","full_name":"Valodim/zshrc","owner":"Valodim","description":"My zsh dotfiles","archived":false,"fork":false,"pushed_at":"2013-11-07T11:54:41.000Z","size":504,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T22:54:31.043Z","etag":null,"topics":[],"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/Valodim.png","metadata":{"files":{"readme":"readme.mkd","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":"2011-07-27T22:48:01.000Z","updated_at":"2023-07-25T13:43:11.000Z","dependencies_parsed_at":"2023-03-13T21:30:49.352Z","dependency_job_id":null,"html_url":"https://github.com/Valodim/zshrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Valodim/zshrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fzshrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fzshrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fzshrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fzshrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valodim","download_url":"https://codeload.github.com/Valodim/zshrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fzshrc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259493505,"owners_count":22866330,"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-16T07:43:40.442Z","updated_at":"2025-06-12T15:32:58.834Z","avatar_url":"https://github.com/Valodim.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"My zsh configs. If you don't know what's what, you probably shouldn't use it\nbut get your own going. Feel free to steal, though. I try to keep it usable :)\n\nInteresting keybindings:\n\n    editing:\n        ^A go to beginning of line\n        ^E go to end of line\n        ^F edit command line in $EDITOR\n        ^H run help for current $0\n        ^P push line on stack\n        ^O insert line from stack\n        ^T undo\n        ^U clear line\n        ^V insert next character literally\n        ^R incremental history search\n        ^Y prepend \"sudo \"\n        ^X^X copy $BUFFER to clipboard using xclip\n        ctrl-left/right will move along argument boundaries\n        repeated ... will be turned into ../.. (mikachu's rationalise-dots)\n\n    history:\n        ^B accept current buffer. if there is a matching line in history, push the following one\n        down on a non-empty line will push it to history without executing, irssi-style\n        up/down will search history on prefix match\n\n    functional shortcuts:\n        ^L display ls\n        ^X^L clear screen (instead of ^L)\n        ^Z do \"fg %%\" (allows neat toggling)\n\n    in menu-complete:\n        page-up will accept and complete again (go into directory)\n        page-down will undo (basically, go up directory)\n        menu will accept selection but stay in menu-complete\n\nModules:\n--\n\nThese provide a variety of stand-alone functionality.\n\n### 20-rehash-hook.zsh\nListens for USR1 and rehashes when received. Sends USR1 to all instances of zsh\nafter a command starting with apt-get, aptitude or pip is run (might need to\nexpand this list?)\n\n### 50-title.zsh\nSets the window and tmux tab title.\n\n### 50-vicursor.zsh\nSets the cursor color to red in vicmd mode. Only in xterm, rxvt[-unicode] and\ntmux 1.8+\n\n### 60-localhist.zsh\nEnables local histories for specific directories. Use _lhc_ to create a local\nhistory for the current pwd. Enable with _lh1_, disable with _lh0_, or toggle\nwith localhist\\_toggle widget, bound to ^G by default.\n\n### 72-bracket-paste.zsh\nAdds support for bracketed paste mode. Supported in xterm, rxvt-unicode and\ntmux 1.7+\n\n### 72-return.zsh\nRemembers last dir cd'ed to. In a new session, if the first line is left empty\nand accepted, changes to that dir.\n\n### 96-vcs\\_info-cdpath.zsh\nAdds the base dir of a repository to cdpath.\n\n### 96-vcs\\_info-githooks.zsh\nDisplays info about tracking branches and stacked commits in git repositories.\n\n### 96-vcs\\_info-lofi.zsh\nDisplays only basic vcs info until a vcs command is run (can also be triggered\nusing ^G^L).\n\n### 97-prompt-disambiguate.zsh\nReplaces the path name in prompt with a non-ambiguous prefix form.\n\n### 97-prompt-exitnames.zsh\nReplaces exit codes in prompt with names of the signals (usually) causing them.\n\n\nPrompt:\n--\n\n  See https://github.com/Valodim/zsh-prompt-powerline\n\n  I am at this point usually using my powerline prompt and this old one as a\n  fallback if a powerline patched font is unavailable. Just keeping this info\n  here for reference.\n\n\n      [valodim@SteelHooves] ::1 ~/.zsh/custom master¹² 1 ±\n           ^       ^        ^^^    ^     ^      ^   ^^ ^ ^\n           a       b        cde    f     g      h   ij k l\n\n    a username, only displayed if it's not \"valodim\" (you probably wanna change that)\n    b hostname, colored using its hash\n    c pwd permissions indicator, : if owned by $uid else ., yellow if only readable, red if not even readable\n    d localhist indicator, : if enabled, . if disabled, colored differently if there is a localhist\n    e fail indicator, displays exit status if it's != 0\n    f path, nothing special about it\n    g path within repository, differently colored\n    h vcs branch name\n    i unstaged changes indicator\n    j staged changes indicator\n    k number of stashed commits, if \u003e 0\n    l repository type indicator. ± for git, ☿ for hg, $name for others, » outside of repositories\n\n  So a clean prompt [[ $PWD == $HOME ]] looks like\n\n      [SteelHooves] :: ~ »\n\n  beautiful, isn't it? :)\n\nTidbits:\n - the hostname color in the prompt is generated from a hash\n - cd completion will display the number of regular files in the current dir\n - using .. to go up directories will display the absolute path below the prompt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalodim%2Fzshrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalodim%2Fzshrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalodim%2Fzshrc/lists"}