Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mloskot/dotfiles
My dotfiles (fka wsl-config) for development environments on Windows, Windows Subsystem for Linux and Linux
https://github.com/mloskot/dotfiles
bash configuration-files git git-bash linux mutt powershell vim windows windows-subsystem-linux windows-terminal wsl wsl-debian wsl-ubuntu
Last synced: about 2 months ago
JSON representation
My dotfiles (fka wsl-config) for development environments on Windows, Windows Subsystem for Linux and Linux
- Host: GitHub
- URL: https://github.com/mloskot/dotfiles
- Owner: mloskot
- License: unlicense
- Created: 2018-04-14T14:12:36.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T10:44:25.000Z (2 months ago)
- Last Synced: 2024-10-21T15:39:05.402Z (2 months ago)
- Topics: bash, configuration-files, git, git-bash, linux, mutt, powershell, vim, windows, windows-subsystem-linux, windows-terminal, wsl, wsl-debian, wsl-ubuntu
- Language: Shell
- Homepage:
- Size: 438 KB
- Stars: 50
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles
Configuration files for development environments on Windows,
Windows Subsystem for Linux and Linux. The Linux dotfiles are
mainly for Debian-based distributions.No fancy all-in-one installer script provided, but collection
of `install.sh` and `install.bat` scripts.## Git
```console
cd git
install.bat
```## Windows
- Install `DejaVuSansMono Nerd Font` from https://www.nerdfonts.com
- `ConEmu.xml` with custom tasks to [Cmder](http://cmder.net/) config directory
```shell
mv C:\apps\cmder_mini\vendor\conemu-maximus5\ConEmu.xml C:\apps\cmder_mini\vendor\conemu-maximus5\ConEmu.xml.original
mklink C:\apps\cmder_mini\vendor\conemu-maximus5\ConEmu.xml %CD%\win\cmder_mini\vendor\conemu-maximus5\ConEmu.xml
```- `clink.lua` with [slow git status workaround](https://github.com/cmderdev/cmder/issues/447#issuecomment-379992066) to Cmder vendor directory
```shell
mv C:\apps\cmder_mini\vendor\clink.lua C:\apps\cmder_mini\vendor\clink.lua.original
mklink C:\apps\cmder_mini\vendor\clink.lua %CD%\win\cmder_mini\vendor\clink.lua
```- `clink-completions\git_prompt.lua`
```shell
mklink C:\apps\cmder_mini\vendor\clink-completions\git_prompt.lua %CD%\win\cmder_mini\vendor\clink-completions\git_prompt.lua
```- `code.cmd` for [Code Insiders](https://code.visualstudio.com/insiders/)
```shell
mklink "C:\Program Files\Microsoft VS Code Insiders\bin\code.cmd" %CD%\win\vscode\code.cmd
```- `.gitconfig` works for both
- `git-prompt.sh` for preferred Bash prompt
```shell
mklink %USERPROFILE%\.config\git\git-prompt.sh %CD%\win\home\.config\git\git-prompt.sh
```or
```shell
del /S /Q "c:\Program Files\Git\etc\profile.d\git-prompt.sh"
mklink "c:\Program Files\Git\etc\profile.d\git-prompt.sh" %CD%\win\git\etc\profile.d\git-prompt.sh
```## WSL
```console
sudo -i bash -c 'echo "mloskot ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
``````console
sudo sed -i '/bell-style none/s/^# //g' /etc/inputrc
```### Bash
Use [bash/install.sh](bash/install.sh).
### Cron
Optionally, to enable OfflineIMAP as cron job:
```console
echo 'sudo -i service cron start' >> ~/.bashrc
```### Vim
```console
ln -s /mnt/d/dotfiles/vim/.vimrc ~/.vimrc
```* https://wiki.archlinux.org/index.php/Mutt#Passwords_management
```console
mkdir ~/.mail
chmod 0700 ~/.mail
```#### OfflineIMAP
```console
sudo apt -y -q install python-pip
sudo pip install --system offlineimap
``````console
ln -s /mnt/d/dotfiles/mail/.offlineimaprc ~/.offlineimaprc
ln -s /mnt/d/dotfiles/mail/offlineimap_secret.py ~/.mail/offlineimap_secret.py
``````console
echo "<>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_client_id.gpg
echo "<>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_client_secret.gpg
echo "<>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_refresh_token.gpg
``````console
# workstation
ln -s /mnt/d/dotfiles/mail/mailrun.sh ~/bin/
# laptop
ln -s /mnt/d/dotfiles/mail/mailsync.sh ~/bin/
```Optionally, to run OfflineIMAP, if the customMutt shortcuts,
`CTRL+a` and `CTRL+i` are not enough:```console
$ crontab -e
*/5 * * * * /home/mloskot/bin/mailrun.sh
```### Mutt
```console
sudo apt -y -q install neomutt
``````console
which mutt || which neomutt && sudo ln -s `which neomutt` /usr/local/bin/mutt
``````console
echo -e 'set smtp_url="<"\nset smtp_pass="<"' | gpg -e -r "[email protected]" -o ~/.mail/smtp_token.gpg
``````console
ln -s /mnt/d/dotfiles/mail/.muttrc ~/.muttrc
ln -s /mnt/d/dotfiles/mail/signature ~/.mail/signature
ln -s /mnt/d/dotfiles/mail/vombatidae.mutt ~/.mail/vombatidae.mutt
```