Skip to content

Latest commit

 

History

History
108 lines (78 loc) · 4.26 KB

README.md

File metadata and controls

108 lines (78 loc) · 4.26 KB

Zakk's Dotfiles

Overview

This Mostly used for Salesforce/Javascript development - but trying to use some semi-sane defaults.

Prerequisites

  1. Nerd Fonts. Dank Mono, Fira Code and Maple Font are ideal
Debian/Ubuntu Prerequisites
sudo apt install zsh kitty tmux git fzf ripgrep vim python3-pip gimp \
flatpak lua5.4 liblua5.4-dev ruby-full ninja-build gettext cmake unzip curl \
perl curl neofetch xclip ca-certificates curl php-cli php-zip
Install Lua, LuaRocks
  • sudo apt install lua5.4 liblua5.4-dev
  • Follow these instructions:
    • wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
    • tar zxpf luarocks-3.11.1.tar.gz
    • cd luarocks-3.11.1
    • ./configure && make && sudo make install
    • sudo luarocks install luasocket
Install Ruby
  • gem install neovim
Fedora Prerequisites
  • sudo dnf install zsh kitty tmux git unzip fzf ripgrep vim ttf-ms-fonts python-dev python3-dev libssl-dev python3-pip gimp flatpak
  • sudo dnf -y install ninja-build cmake gcc make unzip gettext curl
Flatpak Install (if Needed)
  • flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  • flatpak update
Install Neovim from Source

See Neovim Documentation for more:

  • git clone https://github.com/neovim/neovim
  • cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo
  • sudo make install
Other Tasks
  • Install Nerd Fonts, DankMono, Fira Code Font and Maple Font

  • Oh My Zsh

    • sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • Spaceship Prompt

    • git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
    • ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
  • Zsh Autosuggestions

    • git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    • echo "bindkey '^ ' autosuggest-accept" >> $ZSH_CUSTOM/autosuggestion-settings.zsh
    • source $ZSH_CUSTOM/autosuggestion-settings.zsh
  • Zsh Syntax Highlighting

    • git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • NVM

    • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
    • source ~/.zshrc
    • nvm install node -g
    • Install other node/neovim dependenices:
      • npm install -g neovim
      • npm install -g sql-formatter
      • npm install -g tree-sitter
  • Install Zulu17 (Ubuntu)

    • Zulu17 Download
    • Alternatively, wget https://www.azul.com/core-post-download/?endpoint=zulu&uuid=9f020a32-d669-4f80-b4be-7a2551d0e7df
  • Install Zulu17 (Fedora)

    • Zulu17 Download
    • Alternatively, wget https://www.azul.com/core-post-download/?endpoint=zulu&uuid=65bccb64-a1f4-4c8c-964e-24c6d8a03ddb
  • Install SFDX CLI

    • npm install -g @salesforce/cli
PMD
  • wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.0.0-rc4/pmd-dist-7.0.0-rc4-bin.zip
  • unzip PMD
  • Copy to /opt/pmd

Install Instructions

You can replace config with anything - ensure it's aliased in any bash/config files.

  1. alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  2. echo ".cfg" >> .gitignore
  3. git clone --bare [email protected]:zacherytapp/dots.git $HOME/.cfg
  4. alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  5. config config --local status.showUntrackedFiles no
  6. config checkout

TODO:

  • Instructions for installing python
  • Instructions for installing ruby
  • Instructions for installing lua
  • Instructions for configuring various needed npm packages