Skip to content

Latest commit

 

History

History
184 lines (146 loc) · 5.89 KB

README.md

File metadata and controls

184 lines (146 loc) · 5.89 KB

Alacritty Settings

Features

Fast access directory

Fuzz search files

Command completions

Install (quick)

Windows Setup

  1. clone the repo
  2. Run update.bat
  3. Run config-alacritty.bat

FLY!!

Mac/Linux Setup

WIP...

Install (manually)

Windows Setup

  1. git clone git@github.com:jwu/alacritty-settings.git ${YOUR_ALACRITTY_PATH}
  2. install alacritty to ${YOUR_ALACRITTY_PATH}
  3. install FiraMono Nerd Font
  4. unzip clink to ${YOUR_ALACRITTY_PATH}/vendor/clink
  5. unzip clink-completions to ${YOUR_ALACRITTY_PATH}/vendor/clink_completions
  6. unzip git-for-windows to ${YOUR_ALACRITTY_PATH}/vendor/git
  7. unzip starship to ${YOUR_ALACRITTY_PATH}/vendor
  8. unzip fzf to ${YOUR_ALACRITTY_PATH}/vendor/bin
  9. unzip zoxide to ${YOUR_ALACRITTY_PATH}/vendor/bin
  10. Run config-alacritty.bat

Mac & Linux Setup

  1. git clone git@github.com:jwu/alacritty-settings.git ${YOUR_ALACRITTY_PATH}
  2. install alacritty to ${YOUR_ALACRITTY_PATH}
  3. install FiraMono Nerd Font
  4. install fishshell
  5. install git
  6. unzip starship to /usr/local/bin
  7. unzip fzf to /usr/local/bin
  8. unzip zoxide to /usr/local/bin
  9. cp settings/alacrity.toml to ~/.alacritty.toml
  10. cp settings/starship.toml to ~/.config/starship.toml
  11. edit ~/.config/fish/config.fish

~/.config/fish/config.fish

set -x PATH ~/bin ~/.cargo/bin ~/.local/bin /usr/local/bin $PATH
set -x PATH /opt/nvim-linux64/bin $PATH
set -x LANG "en_US.UTF-8"

# NOTE: in ubuntu, this doesn't work
# set -x STARSHIP_CONFIG "~/alacritty-settings/settings.mac/starship.toml"

starship init fish | source
zoxide init fish | source

Reference

Some helpful configs or commands

set default shell on *nix platofrom

# set zsh as default shell
sudo chsh -s /bin/zsh

# set fish as default shell
sudo chsh -s /usr/local/bin/fish

~/.alacritty.yml

import:
  - e:\Alacritty\settings\alacritty.yml

shell:
  program: cmd.exe
  args:
    - /s /k "e:\Alacritty\settings\init.bat"

~/.zshrc

export PATH=~/bin:/usr/local/bin:$PATH
export ZSH=~/.oh-my-zsh
export LANG=en_US.UTF-8
export STARSHIP_CONFIG=~/alacritty-settings/settings.mac/starship.toml

ZSH_THEME="dracula"

plugins=(
  git
  zsh-autosuggestions
)

source $ZSH/oh-my-zsh.sh
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"

~/.config/fish/config.fish

set -x PATH ~/bin ~/.cargo/bin ~/.local/bin /usr/local/bin $PATH
set -x PATH /opt/nvim-linux64/bin $PATH
set -x LANG "en_US.UTF-8"

# NOTE: in ubuntu, this doesn't work
# set -x STARSHIP_CONFIG "~/alacritty-settings/settings.mac/starship.toml"

starship init fish | source
zoxide init fish | source