From de70fc08ee60c49408d850c6814388647310e13a Mon Sep 17 00:00:00 2001 From: Tiago Celestino Date: Tue, 4 Nov 2025 09:17:23 -0300 Subject: [PATCH 1/2] chore: rename fn name --- zsh/custom-functions/custom-functions.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/custom-functions/custom-functions.plugin.zsh b/zsh/custom-functions/custom-functions.plugin.zsh index a3f0c22..d46cec5 100755 --- a/zsh/custom-functions/custom-functions.plugin.zsh +++ b/zsh/custom-functions/custom-functions.plugin.zsh @@ -94,9 +94,9 @@ function filesize() { fi } -# ignore files from git -# usage: ignore_from_git file1.md file2.txt folder1/ folder2/** -ignore_from_git() { +# exclude files from git +# usage: git_exclude file1.md file2.txt folder1/ folder2/** +git_exclude() { local exclude_file=".git/info/exclude" if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then From f80bf1baf655af9217306636a0296c0bd143754b Mon Sep 17 00:00:00 2001 From: Tiago Celestino Date: Tue, 4 Nov 2025 09:20:59 -0300 Subject: [PATCH 2/2] chore: renam how to usage --- zsh/custom-functions/custom-functions.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/custom-functions/custom-functions.plugin.zsh b/zsh/custom-functions/custom-functions.plugin.zsh index d46cec5..342a8ef 100755 --- a/zsh/custom-functions/custom-functions.plugin.zsh +++ b/zsh/custom-functions/custom-functions.plugin.zsh @@ -106,7 +106,7 @@ git_exclude() { if [ $# -eq 0 ]; then echo "Error: No file or folder was specified." >&2 - echo "Usage: ignore_from_git file1.md file2.txt folder1/ folder2/**" >&2 + echo "Usage: git_exclude file1.md file2.txt folder1/ folder2/**" >&2 return 1 fi