Commit Graph

18 Commits

Author SHA1 Message Date
xylous fb3045131b Use zsh's builtin %F{} instead of ANSI codes 2021-09-15 20:03:35 +03:00
xylous 61a7b27867 Update installation instructions in README.md 2021-08-08 18:47:48 +03:00
xylous 0387deb641 Export a function instead of running w/shebang
To make integrating with plugin managers as easy as possible,
plugins/scripts shouldn't be sourced on their own; instead, they should
export functions.
2021-08-08 18:34:17 +03:00
xylous ebf8726ab7 Update README.md 2021-08-08 17:57:38 +03:00
xylous fc9b5ecee6 Fix spacing on the 'branch' text 2021-06-29 13:35:56 +03:00
xylous 490e8aa046 Add "unset" to prevent global namespace pollution 2021-06-24 14:15:15 +03:00
xylous 73c7f5d2fa Document all functions in-source 2021-06-19 10:34:39 +03:00
xylous a520bad83d Update outdated documentation 2021-06-19 09:49:03 +03:00
xylous a48e4eaf4f Fix spacing 2021-06-18 23:45:11 +03:00
xylous 5b13b77fa3 Fix error where no parameters passed to a function
Also, update the names of a handful variables.
2021-06-18 23:39:12 +03:00
xylous 70cec22db5 Split large function into smaller ones
Split former `parse_git_status` function, which was around 60 lines of
code, into multiple small functions.

Also, instead of polluting the global namespace with a lot of variables,
make functions return something through a $REPLY variable. Or the
$STATUS variable, in the case of the *new* parse_git_status function.
2021-06-18 23:19:19 +03:00
xylous 208cfc43ee Use ANSI color codes instead of the zsh builtin %F{} 2021-05-30 11:14:41 +03:00
xylous 88430f3835 Remove trailing whitespace from GIT_STATUS variable 2021-05-19 18:23:27 +03:00
xylous e05101d358 Add README.md 2021-05-19 13:32:27 +03:00
xylous 9c79daa0f5 Add MIT License 2021-05-19 12:13:14 +03:00
xylous 38ed00375f Make script more portable 2021-05-15 17:48:12 +03:00
xylous e267362a9a Simplify code 2021-05-15 17:34:41 +03:00
xylous 1b81ab7bb3 Initial Commit 2021-05-15 16:47:38 +03:00