This is the repo to collect helpful commandlines that is used for mac and linux 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
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 | head -1 | awk -F "stable " '{print $2}')" "${HOME}" "True"
brew uninstall lhs-helpful-commandlines
brew untap lamhaison/formulae
brew tap lamhaison/formulae
brew install lamhaison/formulae/lhs-helpful-commandlines
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 for search list commandline
Option + R for search history
Option + gc or lhs_git_commit_suggestions | peco