Updated install for php + notes and fish config.
This commit is contained in:
parent
8805c7ef12
commit
940dbaff34
|
|
@ -19,7 +19,7 @@ set -gx LC_ALL "en_US.UTF-8"
|
||||||
set -gx DEBUG 1
|
set -gx DEBUG 1
|
||||||
set -gx GOPATH "$HOME/.go"
|
set -gx GOPATH "$HOME/.go"
|
||||||
set -gx GOCACHE "$HOME/.go/cache"
|
set -gx GOCACHE "$HOME/.go/cache"
|
||||||
set -gx GOROOT /usr/local/go
|
set -gx GOROOT /usr/local/go
|
||||||
set -gx PATH /usr/local/go/bin $GOPATH/bin $PATH
|
set -gx PATH /usr/local/go/bin $GOPATH/bin $PATH
|
||||||
|
|
||||||
# FZF configuration
|
# FZF configuration
|
||||||
|
|
@ -97,7 +97,7 @@ alias lspmake='bear -- make -B'
|
||||||
# Project Manager
|
# Project Manager
|
||||||
function pp
|
function pp
|
||||||
set -l project_file "$HOME/.projects"
|
set -l project_file "$HOME/.projects"
|
||||||
|
|
||||||
# Create the file if it doesn't exist
|
# Create the file if it doesn't exist
|
||||||
if not test -f "$project_file"
|
if not test -f "$project_file"
|
||||||
touch "$project_file"
|
touch "$project_file"
|
||||||
|
|
|
||||||
21
install.sh
21
install.sh
|
|
@ -21,14 +21,16 @@
|
||||||
#
|
#
|
||||||
# [Install]
|
# [Install]
|
||||||
# WantedBy=default.target
|
# WantedBy=default.target
|
||||||
# ```
|
# ```
|
||||||
|
|
||||||
# * Clone dotfiles
|
# * Clone dotfiles
|
||||||
# * Install bob neovim manager [ curl -fsSL https://raw.githubusercontent.com/MordechaiHadad/bob/master/scripts/install.sh | bash ]
|
|
||||||
# * Install nerd font
|
# * Install nerd font
|
||||||
# * Remove firefox for Brave
|
# * Remove firefox for Brave
|
||||||
# * Setup gnome extensions
|
# * Setup gnome extensions
|
||||||
# * Install steam
|
# * [OPTIONAL]
|
||||||
|
# * Install steam
|
||||||
|
# * Install bob neovim manager [ curl -fsSL https://raw.githubusercontent.com/MordechaiHadad/bob/master/scripts/install.sh | bash ]
|
||||||
|
# * Install latest version of golang
|
||||||
# ---------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------
|
||||||
## GLOBAL VARS
|
## GLOBAL VARS
|
||||||
# ---------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------
|
||||||
|
|
@ -114,10 +116,11 @@ if [ "$DO_LINKS" = true ]; then
|
||||||
CREATED=0
|
CREATED=0
|
||||||
SKIPPED=0
|
SKIPPED=0
|
||||||
|
|
||||||
|
link_file "$DOTFILES_DIR/config/kanata" "$HOME/.config/kanata"
|
||||||
link_file "$DOTFILES_DIR/config/fish" "$HOME/.config/fish"
|
link_file "$DOTFILES_DIR/config/fish" "$HOME/.config/fish"
|
||||||
link_file "$DOTFILES_DIR/config/foot" "$HOME/.config/foot"
|
link_file "$DOTFILES_DIR/config/foot" "$HOME/.config/foot"
|
||||||
link_file "$DOTFILES_DIR/config/kanata" "$HOME/.config/kanata"
|
|
||||||
link_file "$DOTFILES_DIR/config/nvim" "$HOME/.config/nvim"
|
link_file "$DOTFILES_DIR/config/nvim" "$HOME/.config/nvim"
|
||||||
|
link_file "$DOTFILES_DIR/config/zed" "$HOME/.config/zed"
|
||||||
link_file "$DOTFILES_DIR/config/gitu" "$HOME/.config/gitu"
|
link_file "$DOTFILES_DIR/config/gitu" "$HOME/.config/gitu"
|
||||||
link_file "$DOTFILES_DIR/config/gtk3/gtk.css" "$HOME/.config/gtk-3.0/gtk.css"
|
link_file "$DOTFILES_DIR/config/gtk3/gtk.css" "$HOME/.config/gtk-3.0/gtk.css"
|
||||||
link_file "$DOTFILES_DIR/config/gtk4/gtk.css" "$HOME/.config/gtk-4.0/gtk.css"
|
link_file "$DOTFILES_DIR/config/gtk4/gtk.css" "$HOME/.config/gtk-4.0/gtk.css"
|
||||||
|
|
@ -146,9 +149,12 @@ fi
|
||||||
if [ "$DO_INSTALL" = true ]; then
|
if [ "$DO_INSTALL" = true ]; then
|
||||||
REQUIRED_PACKAGES=(
|
REQUIRED_PACKAGES=(
|
||||||
# system essentials
|
# system essentials
|
||||||
wget curl git
|
wget curl git unzip
|
||||||
fzf fd-find btop direnv ripgrep tree
|
fzf fd-find btop direnv ripgrep tree
|
||||||
build-essential make bear valgrind fish
|
build-essential make bear valgrind fish
|
||||||
|
# php dependencies
|
||||||
|
composer php-cli php-common php-curl
|
||||||
|
php-mbstring php-xml php-zip php-gd php-sqlite3
|
||||||
)
|
)
|
||||||
|
|
||||||
MISSING_PACKAGES=()
|
MISSING_PACKAGES=()
|
||||||
|
|
@ -171,7 +177,7 @@ if [ "$DO_INSTALL" = true ]; then
|
||||||
echo "📦 Updating package lists..."
|
echo "📦 Updating package lists..."
|
||||||
# Update package lists before installing
|
# Update package lists before installing
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
echo "📦 Installing missing packages: ${MISSING_PACKAGES[*]}"
|
echo "📦 Installing missing packages: ${MISSING_PACKAGES[*]}"
|
||||||
# Use sudo apt install for installing on Debian
|
# Use sudo apt install for installing on Debian
|
||||||
sudo apt install "${MISSING_PACKAGES[@]}"
|
sudo apt install "${MISSING_PACKAGES[@]}"
|
||||||
|
|
@ -181,4 +187,3 @@ if [ "$DO_INSTALL" = true ]; then
|
||||||
echo "✅ Package setup complete."
|
echo "✅ Package setup complete."
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue