Code Monkey home page Code Monkey logo

dotfiles's Introduction

My personal dotfiles. I use GNU stow to manage them.

Installation

Go to your home directory

$ cd

Clone the repo

$ git clone https://github.com/giannivh/dotfiles .dotfiles

Important: in order for stow to work, the repo needs to be cloned in the $HOME directory!

Some dotfiles require scripts in ~/.scripts, so stow them first:

$ cd .dotfiles
$ stow scripts

Make sure ~/.scripts is inside your $PATH.

Usage

Go to the dotfiles directory

$ cd .dotfiles

Install in $HOME (for example, tmux)

$ stow tmux

Uninstall from $HOME (for example, tmux)

$ stow -D tmux

Dotfiles explained

If any of my dotfiles requires some info, it's explained below.

ZSH

The config sources ~/Private/zsh/**/*.zsh. I store my project specific aliases and other stuff I don't want to have public there.

VIM

Needs:

  • Python3
  • VIM >= 8 with python3: :echo has('python3') must return 1
  • Neovim python3 interface: pip3 install neovim
  • Exuberant ctags >= 5.5

All plugins will be installed when you start VIM for the first time. I use vim-plug.

Mails

I use the following setup:

  • GPG
  • Offlineimap
  • Notmuch
  • Neomutt

Encryption

I use my YubiKey to encrypt my email addresses and passwords.

For offlineimap, the encrypted files are stored in ~/Private/offlineimap, and a tree looks like this:

$ tree
.
├── imap-mailinglist-pass.gpg
├── imap-mailinglist-user.gpg
├── imap-personal-pass.gpg
├── imap-personal-user.gpg
├── imap-work-pass.gpg
└── imap-work-user.gpg

0 directories, 6 files

See offlineimap/.offlineimap.py on how the decryption is done.

For neomutt, the account configuration files and encrypted files are stored in ~/Private/neomutt, and a tree looks like this:

$ tree
.
├── addresses
├── neomutt.account.mailinglist
├── neomutt.account.mailinglist.credentials.gpg
├── neomutt.account.personal
├── neomutt.account.personal.credentials.gpg
├── neomutt.account.work
├── neomutt.account.work.credentials.gpg
└── signature_work.html

0 directories, 8 files

The neomutt.account.mailinglist file contains the configuration for neomutt, whereas the neomutt.account.mailinglist.credentials.gpg file contains the encrypted email address and password for that account. There's an example configuration file for Gmail in neomutt/.config/neomutt/neomutt.account.example.

To create the GPG encrypted files, I use the following command:

$ gpg --recipient 0123456789 --encrypt --armor > neomutt.account.example.credentials.gpg
set my_user="[email protected]"
set my_pass="abc123"
<ctrl+d>

Replace 0123456789 with your key ID.

dotfiles's People

Contributors

giannivh avatar

Stargazers

 avatar

Watchers

 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.