Skip to content

Collection of my linux / mac terminal configurations

Notifications You must be signed in to change notification settings

battagel/dotfiles

Repository files navigation

Dotfiles

Dependencies

vim
cmake
python3
perl

Install

This repo uses GNU stow. Please make sure it is installed.

git clone --recurse-submodules https://github.com/battagel/dotfiles.git 
cd dotfiles
make

test

Post-Install

Source vim config

Go into vimrc file

vim .vimrc
:source .vimrc

Install all vim plugins

:PluginInstall

!NOTE! Vundle will fail as it is a submodule for this git

Vim

Double check if vim is version 8.2. If not manually install using these https://phoenixnap.com/kb/how-to-install-vim-centos-7 - For installing dependencies https://gist.github.com/yevrah/21cdccc1dc65efd2a4712781815159fb - For compiling

Coc.nvim requires some special attention First we need to install nodejs 12 for coc.nvim to work Linux:

sudo yum -y update
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum clean all && sudo yum makecache fast
sudo yum install -y gcc-c++ make
sudo dnf module enable nodejs:12
sudo dnf install nodejs
sudo node -v

https://computingforgeeks.com/how-to-install-nodejs-on-centos-fedora/ If the following steps dont work try this: https://www.codegrepper.com/code-examples/shell/centos+7+install+nodejs+12

Or for Mac:

brew install nodejs

Need to finish installing coc.nvim dependancies

cd .vim/bundle/coc.nvim
npm install
OR
yarn install

Dont forget to install the coc language servers in vim - This should be done automatically when you open vim!

Double check these have installed

:CocInstall coc-tsserve
:CocInstall coc-pyright
:CocInstall coc-prettier
:CocInstall coc-lists

Type :CocConfig and add these lines

{
  "coc.preferences.formatOnSaveFiletypes": [
    "typescript",
    "typescriptreact",
    "python"
   ]
}

You need to use a specific font to enable dev icons https://github.com/ryanoasis/nerd-fonts Download .zip Run either the .sh or the .ps1 file with the specific font as a param

./install.ps1 Hack
./install.sh Hack

Apply the specific font in the terminal. Reload terminal app.

TMUX

Install tmux 3.2a

yum install http://mirror.ghettoforge.org/distributions/gf/el/8/testing/x86_64/tmux-3.2a-3.gf.el8.x86_64.rpm

Config requires perl

Source the config files - First file may throw some errors

source .tmux.conf
source .tmux.conf.local

Test load tmux

tmux

Install Tmux plugins from inside tmux

<leader>+r

Any errors regarding ^M found in files run this:

yum install dos2unix
dos2unix <file>

Doom emacs

alias doom=".emacs.d/bin/doom"
or
export PATH="$PATH:$HOME/.emacs.d/bin/doom"

All done!!

Features of this config package

  • NERDTree
  • NERDCommenter
  • Linting
  • Git Integration
  • Autocomplete
  • TagBar
  • Fuzzy Finder
  • Pretty colours
  • Vim TMUX integration
  • Easily edited config files using hotkeys
  • Doom emacs config

About

Collection of my linux / mac terminal configurations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published