Skip to content

Instantly share code, notes, and snippets.

@speedlog
Last active May 29, 2022 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save speedlog/ae6c34cee56d758231560c64ac5f53e9 to your computer and use it in GitHub Desktop.
Save speedlog/ae6c34cee56d758231560c64ac5f53e9 to your computer and use it in GitHub Desktop.
Install redo tool: https://github.com/barthr/redo
# CHECK ACTUAL VERSION: https://github.com/barthr/redo/releases
REDO_VERSION=0.5.0
wget https://github.com/barthr/redo/releases/download/v${REDO_VERSION}/redo_${REDO_VERSION}_Linux_x86_64.tar.gz
tar -xf redo_${REDO_VERSION}_Linux_x86_64.tar.gz redo
sudo mv redo /usr/local/bin
rm -rf redo_${REDO_VERSION}_Linux_x86_64.tar.gz redo
echo '### REDO CONFIG START ###' >> ~/.bashrc
echo 'export REDO_HISTORY_PATH=$HISTFILE' >> ~/.bashrc
echo 'export REDO_EDITOR=vim' >> ~/.bashrc
echo 'shopt -s histappend' >> ~/.bashrc
echo 'export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"' >> ~/.bashrc
echo 'source "$(redo alias-file)"' >> ~/.bashrc
echo '### REDO CONFIG END ###' >> ~/.bashrc
source ~/.bashrc
@speedlog
Copy link
Author

Install script

curl https://gist.githubusercontent.com/speedlog/ae6c34cee56d758231560c64ac5f53e9/raw/28a4cf1e586e89ddc70aa4f8a96e4d489ad6ad2d/install_redo.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment