This is the repo to collect helpful commandlines that is used for MAC OS.
Notes: This document is for macos environment.
brew install glab
export GITLAB_TOKEN=xxxxx
brew install gh
export GH_TOKEN=xxxx
To allow searching by console.
brew install peco
peco --version
peco version v0.5.10 (built with go1.19.2)
brew install jq
jq --version
jq-1.6
It is easy to setup and run and don't want to change or optimize it
brew tap lamhaison/formulae
brew install lamhaison/formulae/lhs-helpful-commandlines
Add these lines to ~/.bashrc or ~/.zshrc or ~/.bash_profile
source "$(which lhs-helpful-commandlines.sh)" "/opt/homebrew/Cellar/lhs-helpful-commandlines/$(brew info lhs-helpful-commandlines | grep -E '==> .*: stable (.*)$' | sed -E 's|==> .*: stable (.*)$|\1|g')" "True" "True"
brew uninstall lhs-helpful-commandlines
brew untap lamhaison/formulae
brew tap lamhaison/formulae
brew install lamhaison/formulae/lhs-helpful-commandlines
It is easy for you to custom your scripting to fix with your style
mkdir -p /opt/lamhaison-tools && cd /opt/lamhaison-tools
git clone https://github.com/lamhaison/helpful-commandlines.git
echo "source /opt/lamhaison-tools/helpful-commandlines/main.sh" >> ~/.bashrc
Ctrl + h: to and choose the commandline that you want to run(searching and enter to auto fill it to your terminal)
lhs_help_helpful cmd: only for searching, it will not automatically fill in to your terminal
Option + r: to select the history commandline that you wan to re-run(searching and enter to auto fill it to your terminal)
search history commandline: only for searching history, it will not automatically fill in to your termial
lhs_git_commit_suggestions: only for searching the list commit message pattern