Look for python and python3
This commit is contained in:
@@ -12,4 +12,6 @@ cd quickz-sh
|
|||||||
./quickz.sh
|
./quickz.sh
|
||||||
```
|
```
|
||||||
Optionally run it with '--cp-hist' to copy command history from .bash_history to .zsh_history.
|
Optionally run it with '--cp-hist' to copy command history from .bash_history to .zsh_history.
|
||||||
`./quickz.sh --cp-hist # don't run multiple times`
|
``` bash
|
||||||
|
./quickz.sh --cp-hist # don't run multiple times
|
||||||
|
```
|
||||||
|
|||||||
@@ -89,9 +89,14 @@ if [[ $1 == "--cp-hist" ]]; then
|
|||||||
if command -v python &>/dev/null; then
|
if command -v python &>/dev/null; then
|
||||||
wget https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py
|
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
|
cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
|
||||||
|
else
|
||||||
|
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
|
else
|
||||||
echo "Python is not installed, can't copy bash_history to zsh_history\n"
|
echo "Python is not installed, can't copy bash_history to zsh_history\n"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo -e "Not copying history\n"
|
echo -e "Not copying history\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user