Run don
and dof
to enable/disable git repo here.
Architecture based on https://github.com/jan-warchol/dotfiles
After cloning repository:
# git clone <your dotfiles repo>
mv dotfiles/.git ~/.dotfiles.git
export DOTFILES_HOME=$HOME/.dotfiles.git
source dotfiles/dotfiles.sh
don
# .gitignore is read by ripgrep and fd-find in Ubuntu WSL2 and git bash, so I need to use different file name
git config core.excludesFile .dotfiles.gitignore
git restore .
dof
rm -rf dotfiles
I have added some directories like /projects/
to .ignore
, so that ripgrep or telescope in neovim do not search them.
if you start a glob pattern with a /
, then it will only match that specific path relative to where ripgrep is running
cd ~/.config && git clone git@github.com:rofrol/kickstart.nvim.git nvim
sudo apt-add-repository ppa:git-core/ppa
sudo apt install -y build-essential gitk curl tig fzf libssl-dev
Install Rust from rustup.rs/
On Ubuntu you need sudo apt install -y build-essential
. On Windows npm i -g windows-build-tools
.
cargo install ripgrep fd-find tokei cargo-watch cargo-edit watchexec
sudo add-apt-repository ppa:git-core/ppa
apt install git
https://git-scm.com/download/linux
Install using git https://github.com/junegunn/fzf#using-git. Version from deb was to old for nvim integration script (0.20 vs 0.24).
Scoop is a Windows package manager.
scoop bucket add extras
scoop bucket add games
bin\scoop-install.bat
scoop update *
scoop list
scoop cleanup *
scoop cache rm *
# in bash need to escape *
scoop update \*
- https://github.com/lukesampson/scoop#installation
- ScoopInstaller/Scoop#897 (comment)
- https://github.com/ScoopInstaller/Main/tree/master/bucket
- https://github.com/lukesampson/scoop-extras/tree/master/bucket
- https://github.com/lukesampson/scoop/wiki/Open-With-Icons
- https://rasa.github.io/scoop-directory/by-stars
Shortcuts in %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps
$ cd ~/scoop/buckets/main/
$ git status
# it showed that `bucket/proxychains.json` has local modifications but I could not get rid of them with `git checkout -f`
$ git fetch
$ git reset --hard origin/master
mpv from scoop does not read %APPDATA%\mpv
. Portable one reads it.
Create env MPV_HOME
setx MPV_HOME %USERPROFILE\.confing\mpv
https://github.com/mpv-player/mpv/blob/master/DOCS/man/mpv.rst#files-on-windows
bash bin/mpv-lua-setup.sh
run bin/mpv-setup.bat
as Administrator.
curl --create-dirs -so ~/scoop/apps/mpv/current/lua/json.lua https://raw.githubusercontent.com/craigmj/json4lua/master/json/json.lua
Maybe add thumbnails with icaros https://www.majorgeeks.com/files/details/icaros.html ?
For wezterm use this %USERPROFILE%\scoop\apps\wezterm\current\wezterm-gui.exe
instead of wezterm.exe. Othwerwise there will be problems.
Install UbuntuMono-R.ttf from https://design.ubuntu.com/font/
Instal calibre-normal instead of calibre. For calibre (which is portable version) there is problem.
Long paths needs to be enabled or it asks where to install. Otherwise scoop cannot create shim.
breoffice-stable' (7.0.1) was installed successfully!
'libreoffice-stable' suggests installing 'extras/vcredist2015'.
$ scoop install vcredist2015
Installing 'vcredist2015' (14.0.24215) [64bit]
vc_redist.x64.exe (14,6 MB) [=================================================================================================================] 100%
Checking hash of vc_redist.x64.exe ... ok.
vc_redist.x86.exe (13,8 MB) [=================================================================================================================] 100%
Checking hash of vc_redist.x86.exe ... ok.
Linking ~\scoop\apps\vcredist2015\current => ~\scoop\apps\vcredist2015\14.0.24215
Running post-install script...
ERROR Exit code was 1638!
ERROR Exit code was 1638!
'vcredist2015' (14.0.24215) was installed successfully!
Notes
-----
You can now remove this installer with 'scoop uninstall vcredist2015'
There are two versions:
- https://github.com/lukesampson/scoop-extras/blob/master/bucket/autohotkey.json
- https://github.com/lukesampson/scoop-extras/blob/master/bucket/autohotkey-installer.json
"terminal.integrated.shell.windows": "${env:USERPROFILE}\\scoop\\apps\\git\\current\\bin\\bash.exe"
Add shortcut to %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
sudo sh ~/bin/maps_capslock_to_escape.sh
ln -s ~/.mozilla/firefox/shared/chrome ~/.mozilla/firefox/your_profile/
on Windows run cmd.exe as Administrator and:
mklink /d C:\Users\user\AppData\Roaming\Mozilla\Firefox\Profiles\your-profile\chrome C:\Users\user\.mozilla\firefox\shared\chrome
In Firefox run about:config
and set
toolkit.legacyUserProfileCustomizations.stylesheets
to true
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Install from https://rustup.rs/
Start PowerShell as Administrator and run:
npm install --global windows-build-tools
cargo install ripgrep fd-find tokei cargo-edit
On Windows10 you need to set user env HOME
pointing %USERPROFILE%
for emacs to read ~/.config/emacs/init.el
. Otherwise it will read from ~/AppData/Roaming/.emacs.d
.
ln -s ~/.config/nushell ~/Library/Application\ Support/
- nushell/nushell#10746
- nushell/nushell#893
- my answer https://superuser.com/questions/1804643/how-do-i-change-the-default-location-for-nushell-configration-files/1827175#1827175
in iterm2 set Preferences > Profiles > General > Command > Command
to /opt/homebrew/bin/nu
brew install nushell starship
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
ln -s ~/.config/lazygit ~/Library/Application\ Support/