Coder Social home page Coder Social logo

mloskot / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
49.0 4.0 5.0 432 KB

My dotfiles (fka wsl-config) for development environments on Windows, Windows Subsystem for Linux and Linux

License: The Unlicense

Shell 60.75% PowerShell 25.25% Batchfile 2.02% Python 0.65% Vim Script 6.69% Lua 4.65%
windows windows-subsystem-linux wsl-ubuntu wsl-debian linux configuration-files bash git-bash powershell windows-terminal

dotfiles's Introduction

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

cd git
install.bat

Windows

  • Install DejaVuSansMono Nerd Font from https://www.nerdfonts.com

  • ConEmu.xml with custom tasks to Cmder config directory

    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 to Cmder vendor directory

    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

    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

    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

    mklink %USERPROFILE%\.config\git\git-prompt.sh %CD%\win\home\.config\git\git-prompt.sh

    or

    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

sudo -i bash -c 'echo "mloskot ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
sudo sed -i '/bell-style none/s/^# //g' /etc/inputrc

Bash

Use bash/install.sh.

Cron

Optionally, to enable OfflineIMAP as cron job:

echo 'sudo -i service cron start' >> ~/.bashrc

Vim

ln -s /mnt/d/dotfiles/vim/.vimrc ~/.vimrc

Mail

mkdir ~/.mail
chmod 0700 ~/.mail

OfflineIMAP

sudo apt -y -q install python-pip
sudo pip install --system offlineimap
ln -s /mnt/d/dotfiles/mail/.offlineimaprc ~/.offlineimaprc
ln -s /mnt/d/dotfiles/mail/offlineimap_secret.py ~/.mail/offlineimap_secret.py
echo "<<CLIENT_ID>>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_client_id.gpg
echo "<<CLIENT_SECRET>>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_client_secret.gpg
echo "<<REFRESH_TOKEN>>" | gpg -e -r "[email protected]" -o ~/.mail/oauth2_refresh_token.gpg
# 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:

$ crontab -e
*/5 * * * * /home/mloskot/bin/mailrun.sh

Mutt

sudo apt -y -q install neomutt
which mutt || which neomutt && sudo ln -s `which neomutt` /usr/local/bin/mutt
echo -e 'set smtp_url="<<URL>"\nset smtp_pass="<<PASSWORD>"' | gpg -e -r "[email protected]" -o ~/.mail/smtp_token.gpg
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

dotfiles's People

Contributors

mloskot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.