From bc5fc0b0cbbe0f8bf574ea308d02905ac731fcc5 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 10 Sep 2021 23:44:32 +0200 Subject: [PATCH] refactor: shorter names for autocomplete files --- README.md | 11 +++++++---- autocomplete/{bash_autocomplete => bash} | 0 .../{powershell_autocomplete.ps1 => powershell} | 0 autocomplete/{zsh_autocomplete => zsh} | 0 4 files changed, 7 insertions(+), 4 deletions(-) rename autocomplete/{bash_autocomplete => bash} (100%) rename autocomplete/{powershell_autocomplete.ps1 => powershell} (100%) rename autocomplete/{zsh_autocomplete => zsh} (100%) diff --git a/README.md b/README.md index 197c4107..e229ff7f 100644 --- a/README.md +++ b/README.md @@ -42,21 +42,24 @@ The abra binary will be in `$GOPATH/bin`. **bash** -Copy `autocomplete/bash_autocomplete` into `/etc/bash_completion.d/` and rename +Copy `autocomplete/bash` into `/etc/bash_completion.d/` and rename it to abra. + ``` -sudo cp autocomplete/bash_autocomplete /etc/bash_completion.d/abra +sudo cp autocomplete/bash /etc/bash_completion.d/abra source /etc/bash_completion.d/abra ``` **(fi)zsh** -(fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `zsh_autocomplete` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc` +(fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `autocomplete/zsh` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc` + ``` sudo mkdir /etc/zsh/completion.d/ -sudo cp autocomplete/zsh_autocomplete /etc/zsh/completion.d/abra +sudo cp autocomplete/zsh /etc/zsh/completion.d/abra echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc ``` + (replace .zshrc with ~/.fizsh/.fizshrc if you use fizsh) ## Hacking diff --git a/autocomplete/bash_autocomplete b/autocomplete/bash similarity index 100% rename from autocomplete/bash_autocomplete rename to autocomplete/bash diff --git a/autocomplete/powershell_autocomplete.ps1 b/autocomplete/powershell similarity index 100% rename from autocomplete/powershell_autocomplete.ps1 rename to autocomplete/powershell diff --git a/autocomplete/zsh_autocomplete b/autocomplete/zsh similarity index 100% rename from autocomplete/zsh_autocomplete rename to autocomplete/zsh