Look for python and python3

This commit is contained in:
Joty
2018-04-28 12:38:04 +09:30
parent 9b557f4d7a
commit 4c4f3f393f
2 changed files with 9 additions and 2 deletions

View File

@@ -90,7 +90,12 @@ if [[ $1 == "--cp-hist" ]]; then
wget https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py
cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
else
echo "Python is not installed, can't copy bash_history to zsh_history\n"
if command -v python3 &>/dev/null; then
wget https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py
cat ~/.bash_history | python3 bash-to-zsh-hist.py >> ~/.zsh_history
else
echo "Python is not installed, can't copy bash_history to zsh_history\n"
fi
fi
else
echo -e "Not copying history\n"