Last active
May 29, 2022 20:02
-
-
Save speedlog/ae6c34cee56d758231560c64ac5f53e9 to your computer and use it in GitHub Desktop.
Install redo tool: https://github.com/barthr/redo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install script
curl https://gist.githubusercontent.com/speedlog/ae6c34cee56d758231560c64ac5f53e9/raw/28a4cf1e586e89ddc70aa4f8a96e4d489ad6ad2d/install_redo.sh | bash