Skip to content

ivteplo/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My configuration files for different apps

Installation

  1. Clone this repository to a folder you like (here and further in examples it's ~/.config)
git clone https://github.com/ivteplo/dotfiles ~/.config
  1. Install starship prompt

Bash

  1. Add this line to your ~/.bashrc:
. ~/.config/bash/user_profile.sh
  1. Restart your shell

PowerShell

  1. Install autocompletion module:
Install-Module -name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
  1. Add this line to your PowerShell profile file (you can check the file location by running echo $PROFILE in PowerShell):
. ~\.config\powershell\user_profile.ps1
  1. Restart your shell

Git

bash/user_profile.sh and powershell/user_profile.ps1 automatically add custom git scripts to the path.

If you don't use those shells/files, you just have to add ~/.config/git/scripts to your path variable.

Vim

  1. Install vim-plug

  2. Add this line to your ~/.vimrc file:

source ~/.config/vim/config.vim
  1. Open vim and run :PlugInstall

  2. Wait for the installation to complete

  3. Restart the editor

Changing color scheme

You can create a file called theme.vim in the same folder where the config.vim is. Here, you can call a function to change color scheme. For instance:

call ThemeTokyoNight()

The theme.vim file is ignored by Git, so that every change of current color scheme won't change the state of the repo.

Neovim

  1. Do all the steps inside the Vim section

  2. Install packer.nvim

  3. Install TypeScript Language Server and TypeScript for LSP:

npm install -g typescript typescript-language-server
  1. Start Neovim

  2. Install packages from Packer:

:PackerInstall
  1. After the installation is complete, restart Neovim

Windows Terminal

First, you need to figure out where your settings.json file is. Usually, there is a path like this:

%LOCALAPPDATA%/Packages/Microsoft.WindowsTerminal_?????????????/LocalState/settings.json

You need to replace that settings.json file with the windows-terminal.json file:

# In PowerShell
cp ~/.config/windows-terminal.json $env:LOCALAPPDATA/Packages/Microsoft.WindowsTerminal_?????????????/LocalState/settings.json