Difference between revisions of "Linux shell/Productivity tools"

From Ever changing code
Jump to navigation Jump to search
(Created page with "= Autojump = <source lang="bash"> https://github.com/wting/autojump#manual sudo apt-get install autojump cat /usr/share/doc/autojump/README.Debian Autojump for Debian ------------------- To use autojump, you need to configure you shell to source /usr/share/autojump/autojump.sh on startup. If you use Bash, add the following line to your ~/.bashrc (for non-login interactive shells) and your ~/.bash_profile (for login shells): . /usr/share/autojump/autojump.sh If you us...")
 
 
Line 30: Line 30:
= direnv =
= direnv =
TODO:
TODO:
= [https://github.com/sst/opencode Opencode] =
<source lang="bash"e>
# Install opencode
VERSION=$(curl --silent "https://api.github.com/repos/sst/opencode/releases/latest" | jq -r .tag_name); echo $VERSION
TEMPDIR=$(mktemp -d)
curl -L https://github.com/sst/opencode/releases/download/${VERSION}/opencode-linux-x64.zip -o $TEMPDIR/opencode-linux-x64.zip
unzip $TEMPDIR/opencode-linux-x64.zip -d $TEMPDIR
sudo install $TEMPDIR/opencode /usr/local/bin/opencode
# Usage
opencode version
</source>

Latest revision as of 08:10, 29 August 2025

Autojump

https://github.com/wting/autojump#manual
sudo apt-get install autojump
cat /usr/share/doc/autojump/README.Debian

Autojump for Debian
-------------------

To use autojump, you need to configure you shell to source
/usr/share/autojump/autojump.sh on startup.

If you use Bash, add the following line to your ~/.bashrc (for non-login
interactive shells) and your ~/.bash_profile (for login shells):
. /usr/share/autojump/autojump.sh

If you use Zsh, add the following line to your ~/.zshrc (for all interactive shells):
. /usr/share/autojump/autojump.sh

# Usage
j -s # display statistics


j foo      # Jump To A Directory That Contains foo. It takes multiple arguments to do fuzzy search
jc bar     # jump to a child directory (sub-directory of current directory) rather than typing out the full name
jo music   # Open File Manager To Directories (instead of jumping)
jco images # Opening a file manager to a child directory is also supported

direnv

TODO:

Opencode

# Install opencode
VERSION=$(curl --silent "https://api.github.com/repos/sst/opencode/releases/latest" | jq -r .tag_name); echo $VERSION
TEMPDIR=$(mktemp -d)
curl -L https://github.com/sst/opencode/releases/download/${VERSION}/opencode-linux-x64.zip -o $TEMPDIR/opencode-linux-x64.zip
unzip $TEMPDIR/opencode-linux-x64.zip -d $TEMPDIR
sudo install $TEMPDIR/opencode /usr/local/bin/opencode

# Usage
opencode version