reconstruct dir
This commit is contained in:
@@ -1,36 +1,86 @@
|
||||
#!/bin/bash
|
||||
|
||||
# check for git
|
||||
if ! command -v git >/dev/null 2>&1; then
|
||||
echo "Git is not installed."
|
||||
fi
|
||||
function check_zsh_polyjuice() {
|
||||
# check for zsh-autosuggestions
|
||||
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||
echo "zsh-autosuggestions is not installed."
|
||||
fi
|
||||
|
||||
# check for python
|
||||
if ! command -v python >/dev/null 2>&1; then
|
||||
echo "Python is not installed."
|
||||
fi
|
||||
# check for zsh-syntax-highlighting
|
||||
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
|
||||
echo "zsh-syntax-highlighting is not installed."
|
||||
fi
|
||||
|
||||
# check for rust
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
echo "Rust is not installed."
|
||||
fi
|
||||
# check for zsh-autocomplete
|
||||
if [[ ! -f $ZSH_PLUGINS_PATH/zsh-autocomplete/zsh-autocomplete.plugin.zsh ]]; then
|
||||
echo "zsh-autocomplete is not installed."
|
||||
fi
|
||||
|
||||
# check for verilator
|
||||
if ! command -v verilator >/dev/null 2>&1; then
|
||||
echo "Verilator is not installed."
|
||||
fi
|
||||
# check for fzf-tab
|
||||
if [[ ! -f $ZSH_PLUGINS_PATH/fzf-tab/fzf-tab.zsh ]]; then
|
||||
echo "fzf-tab is not installed."
|
||||
fi
|
||||
|
||||
# check for iverilog
|
||||
if ! command -v iverilog >/dev/null 2>&1; then
|
||||
echo "iverilog is not installed."
|
||||
fi
|
||||
# check for oh-my-zsh
|
||||
if [[ ! -d $ZSH_PLUGINS_PATH/ohmyzsh ]]; then
|
||||
echo "oh-my-zsh is not installed."
|
||||
fi
|
||||
|
||||
# check for OpenJDK
|
||||
if ! command -v javac >/dev/null 2>&1; then
|
||||
echo "OpenJDK is not installed."
|
||||
fi
|
||||
# check for zoxide
|
||||
if (( ! $+commands[zoxide] )); then
|
||||
echo "zoxide is not installed."
|
||||
fi
|
||||
|
||||
# check for sbt
|
||||
if ! command -v sbt >/dev/null 2>&1; then
|
||||
echo "sbt is not installed."
|
||||
fi
|
||||
# check for fzf
|
||||
if (( ! $+commands[fzf] )); then
|
||||
echo "fzf is not installed."
|
||||
fi
|
||||
|
||||
# check for starship
|
||||
if (( ! $+commands[starship] )); then
|
||||
echo "starship is not installed."
|
||||
fi
|
||||
|
||||
# check for python
|
||||
if (( ! $+commands[python3] )); then
|
||||
echo "python3 is not installed."
|
||||
fi
|
||||
}
|
||||
|
||||
function check_tools() {
|
||||
# check for git
|
||||
if ! command -v git >/dev/null 2>&1; then
|
||||
echo "Git is not installed."
|
||||
fi
|
||||
|
||||
# check for python
|
||||
if ! command -v python >/dev/null 2>&1; then
|
||||
echo "Python is not installed."
|
||||
fi
|
||||
|
||||
# check for rust
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
echo "Rust is not installed."
|
||||
fi
|
||||
|
||||
# check for verilator
|
||||
if ! command -v verilator >/dev/null 2>&1; then
|
||||
echo "Verilator is not installed."
|
||||
fi
|
||||
|
||||
# check for iverilog
|
||||
if ! command -v iverilog >/dev/null 2>&1; then
|
||||
echo "iverilog is not installed."
|
||||
fi
|
||||
|
||||
# check for OpenJDK
|
||||
if ! command -v javac >/dev/null 2>&1; then
|
||||
echo "OpenJDK is not installed."
|
||||
fi
|
||||
|
||||
# check for sbt
|
||||
if ! command -v sbt >/dev/null 2>&1; then
|
||||
echo "sbt is not installed."
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user