1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120Linux
=====
Installation instructions for linux. Hint: :exec '!'.getline('.') executes the current line.
nocaps
------
Run the following command on startup (probably ~/.xinitrc):
setxkbmap -option caps:escape
environment
-----------
Edit ~/.profile to contain:
source ~/dotfiles/profile
vim
---
Edit ~/.vimrc and ~/.config/nvim/init.vim to contain:
source ~/dotfiles/vim/vimrc.vim
Run :PlugInstall in vim. For clipboard issues it's recommended to run Parcellite in daemon mode.
zsh
---
git submodule update --init --recursive
ln -s ~/dotfiles/zsh/zshrc ~/.zshrc
chsh -s /bin/zsh
tmux
----
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
git
---
git config --global core.excludesfile ~/.global_gitignore
rxvt
----
ln -s ~/dotfiles/Xresources ~/.Xresources
mkdir -p ~/.urxvt/
ln -s ~/dotfiles/urxvt-ext ~/.urxvt/ext
mkdir -p ~/.fonts
wget https://github.com/orlp/dotfiles/releases/download/font/u_vga16.ttf -P ~/.fonts/
pcalc
-----
python3 -m pip install --user --upgrade ptpython pygments-style-solarized pyperclip
ln -s ~/dotfiles/pcalc/pcalc ~/bin/pcalc
On MacOS also (for a matplotlib backend):
brew install qt
python3 -m pip install pyqt6
building python from source
------------
./configure --prefix=$HOME/.localpython --with-system-expat --with-system-ffi --enable-shared LDFLAGS="-Wl,-rpath,$HOME/.localpython/lib"
On MacOS add: --with-openssl=$(brew --prefix openssl)
building vim from source
------------------------
sudo apt-get build-dep vim-gtk
make distclean
LDFLAGS="-Wl,-rpath=$HOME/.localpython/lib" \
vi_cv_path_python=/home/orlp/.localpython/bin/python \
vi_cv_path_python3=/home/orlp/.localpython/bin/python3 \
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local
make VIMRUNTIMEDIR=/usr/local/share/vim/vim81 -j 4
Windows
=======
Installation instructions for Windows.
cmdrc
-----
Execute: cmdrc/install.bat
Add to path: cmdrc/bin/
Recommended: Install qcon from https://github.com/orlp/qcon
pcalc
-----
python3 -m pip install --user --upgrade ptpython pygments-style-solarized pyperclip
nocaps
------
Execute: nocaps/caps_remap_install.bat
X11 forwarding
--------------
Install VcXsrv. Create a VBS script with following contents:
CreateObject("Wscript.Shell").Run """C:\Program Files\VcXsrv\vcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -noprimary -wgl -silent-dup-error", 0, True
CreateObject("Wscript.Shell").Run "cmd /c ""C:\Program Files\VcXsrv\plink.exe"" -ssh -X -C usr@domain -pw **** urxvt", 0, True
vim
---
Install Vim from https://tuxproject.de/projects/vim/.
Find a vimrc that gets run (like %USERPROFILE%\_vimrc) and change it's contents to this (change to the proper install path):
source C:/dev/dotfiles/vim/vimrc.vim
For neovim it's %LOCALAPPDATA%\nvim\init.vim.
Run :PlugInstall in vim.
git
---
git config --global core.excludesfile C:\dev\dotfiles\.global_gitignore