Skip to content

CodingJediKnight/dotfiles

Repository files navigation

Dot Files

Personal .files and config repo

Install

Init Unix

mkdir -p "$HOME/code/repos/github.com/CodingJediKnight/" && cd "$_"
git clone https://github.com/CodingJediKnight/dotfiles.git && cd dotfiles
./setup

Create ~/.bash_presonal, ~/.bash_private or ~/.bash_work to change settings. For example:

export LANG="en_US.UTF-8"

Init Windows

Use git bash

cd ~
curl -sSLO https://raw.githubusercontent.com/CodingJediKnight/dotfiles/main/install/windows/setup.sh
./setup.sh
rm setup.sh

Fresh Ubuntu

Install all:

dot && cd install/ubuntu/
./install-all

Or install per service:

dot && cd install/ubuntu/
./install-most-stuff-with-apt
# ./install/ubuntu/install-...
# ...

Fresh macOS

Install all:

dot && cd install/mac/
./install-all

Or install per service:

dot && cd install/mac/
./install-most-stuff-with-brew
# ./install/mac/install-...
# ...

Install Go tools

Check if you have all env vars after instilling Go. Or you can just bash -l before run script.

dot && cd install/
./install-go-tools

Fish

Install:

brew install fish || sudo apt install fish
cd $DOTFILES/fish/ && ./setup

Then configure in fish terminal

cd $DOTFILES/fish/ && ./configure

Create ~/.localrc to change settings.

Font for fish

You need to install Hack font in your system and use to your terminal emu.

# MacOS
brew tap homebrew/cask-fonts
brew install font-hack-nerd-font
# Ubuntu
sudo apt install fontconfig
curl -LO https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.zip
sudo mkdir /usr/local/share/fonts/Hack
sudo unzip Hack.zip -d /usr/local/share/fonts/Hack/
sudo fc-cache -fv
rm Hack.zip
# Windows
# Just download and install https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.zip

Features

Vim

Don't forget to run

:PlugInstall

Install Russian spellcheck

:set spelllang=ru

Neovim

cd $DOTFILES/nvim
./setup

GPT (Mods)

Check mods config file path first with mods --settings

baseUrl="localhost:5000/v1" # write your own OpenAI ChatGPT API entry
yq -i "
  .temp = 0.7 |
  .topp = 0.7 |
  .stop = [\"### Instruction\", \"### Response\"] |
  .max-input-chars = 24500 |
  .max-tokens = 2048 |
  .apis.cjk-gpt.base-url = \"$baseUrl\" |
  .apis.cjk-gpt.models.gpt.max-input-chars = 24500
" ~/.config/mods/mods.yml

Pomo

Pomo timer in tmux session

go install github.com/rwxrob/pomo/cmd/pomo@latest
pomo init
pomo delete interval
pomo start

Figlet

figlet -f slant Jedi | lolcat

More Fonts

figlet -f "${FIGL_FONT:-future}" Text

Hostname on enter ssh

scripts
sudo bash -c "cat ./hostnamefiglet > /etc/update-motd.d/10-help-text"

Entr

Cool things

entr bash -c 'clear; go run /tmp/main.go' <<< /tmp/main.go
entr bash -c 'clear; go run RunOnAny$' < <(ls **/*.go)

Mentioning

Used repos

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published