/dotfiles

My scripts and configs for Linux

Primary LanguageVim Script

What is this

My scripts and configs for Linux

Dependencies to install

  • coreutils >= 8.22
  • rustc and cargo
  • chsh
  • git
  • ping
  • wget or curl
  • ncurses (not necessary)
  • package manager: pkg, apt, apt-get, winget, pacman, zypper, xbps-install, yum, aptitude, dnf, emerge, up2date, urpmi, slackpkg, apk, brew, flatpak or snap
  • sudo or doas
  • awk or gawk

Consists configs for

  • nvim (NeoVim) or vim
  • emacs (WIP)
  • nano
  • alacritty
  • git

Automatic installation

Cloning the repository

$ git clone https://github.com/TwoSpikes/dotfiles.git
$ cd dotfiles

Installation

$ sh .dotfiles-setup.sh .

Or to install everything

$ yes | sh .dotfiles-setup.sh .

Note

After installation it is safe to remove local dotfiles repository

Manual installation

.dotfiles-setup.sh

Installation

$ cp ./.dotfiles-setup.sh ~/

Then you need to restart your shell

$ exec $SHELL -l

.gitconfig-default .gitmessage

What is this?

This is a basic Git configuration

Installation

$ cp ./.gitconfig-default ~/
$ cp ~/.gitconfig-default ~/.gitconfig

Now, in file ~/.gitconfig Uncomment lines [user] name and [user] email
Change Your Name to your name
Change youremail@example.com to your email

$ cp ./.gitmessage ~/

.config/nvim/

Warning

Do not delete code that seems strange, maybe you will break something

What is this?

This is NeoVim/Vim configuration

Screenshots

Warning

Implies to use Nerd Fonts

Warning

It works better in NeoVim, and packer.nvim does not work in version of Vim/NeoVim without Lua.

Note

Press SPACE ? to see help

Warning

After updating coc-sh language server, you need to reinstall coc-sh crutch:

Reinstall coc-sh crutch

Run this:

$ ONLY_SETUP_COC_SH_CRUTCH=true ./.dotfiles-setup.sh .

Change to light theme: :set background=light
Change to dark theme: :set background=dark

Manual installation

Installation

$ cp -r ./.config/nvim/ ~/.config/

Extra step for Vim

$ echo "so ~/.config/nvim/init.vim" >> ~/.vimrc
Config for dotfiles

Autogenerate

$ dotfiles setup dotfiles vim

Where is it?

$ mkdir -p ~/.config/dotfiles/vim/
$ vim ~/.config/dotfiles/vim/config.json

If you want to change default dotfiles config path:

$ DOTFILES_VIM_CONFIG_PATH=your_path nvim

Like

$ DOTFILES_VIM_CONFIG_PATH=~/dnsjajsbdn/vim/ nvim

tsch.sh [deprecated]

What is this?

It is a script that runs tsch (TwoSpikes ChooseHub)
It is my old thing that asks for my several most used commands but no I do not use it.

Installation

$ echo "source ./shscripts/tsch.sh" >> ~/.bashrc

Then you need to restart the shell

Running

$ tsch

.emacs.d/

What is this?

It is a configuration for GNU Emacs

Installation

$ cp -r ./.emacs.d/ ~/

Contribution and other stuff

Copy configs to this repo and commit

After installing dotfiles, run:

$ dotfiles commit

If using Vim/NeoVim:

:DotfilesCommit

Get dotfiles version

dotfiles version