Skip to content

durantschoon/dot_files

Repository files navigation

dot_files

My dotfiles except for ~/.emacs.d (but now the makefile in this repo has become the single-stop-shop for setting up my dotfiles including asking to install emacs with my spacemacs dotfiles).

Also on my mind is that maybe I should look up other people's solutions and ditch all this at some point, but with so many choices and the further I get to making this how I want it, seems like I could end up sticking with this.

I use Zsh with oh-my-zsh. I use the agnoster theme which is best viewed with the meslo powerline fonts which should be installed by the cross-system Makefile in this repo.

These dot files are for the common settings on three operating systems: mac, linux (ubuntu), and windows. Specific changes to the path, etc. should go in the OS specific version of ~/.zshenv (remember: .zshenv is sourced every time and .zshrc is for interactive shells). The Windows set up is not really set up, yet. Since ubuntu now runs on Windows, I've been using that and have installed a few things by hand still without yet adding those things to the automation in this repo.

Note to self: The name .shared.zshrc is an old name which meant shared between work and home (both mac). TODO: rename and refactor this so it makes sense on the 3 operating systems.

Bootstraps by Operating system

All OSes

After you install, remember to run M-x all-the-icons-install-fonts

If you're not root, you might need to run emacs like this to write to the fonts directory sudo emacs --init-directory ~/.emacs.d &

Note to self: Next time I should try this on the command line and add it to the scripts if it works: sudo emacs --init-directory ~/.emacs.d --batch with a (temp) file that just runs (all-the-icons-install-fonts)

Ubuntu

sudo apt-get update
sudo apt-get install git make autojump -y
cd
git clone https://github.com/durantschoon/dot_files.git
cd dot_files
make

for reference: zsh on ubuntu

Mac

Forgot how to get brew on the mac? Go here and run the one-liner.

brew install git
cd
git clone https://github.com/durantschoon/dot_files.git
cd dot_files
make

Also note, until I have dotfiles for iTerm, be sure to edit preferences in iTerm and under Profiles > (Default) > Text, flick on "Use built-in Powerline glyphs."

Windows

WSL

  1. It's important to be in your home directory so run cd before cloning this directory. By default in WSL I end up in a user data directory when I first log in.

  2. Do not rely on setxkbmap in ubuntu under WSL to alter the keyboard mapping. Set that up manually by downloading the .exe from https://github.com/microsoft/PowerToys

Because the Makefile is set up to run with a different home dir (for example under another user's home dir), edit the Makefile, changing: REDEFINE_HOME_HERE_MAYBE to what you want.

sudo apt-get update
sudo apt-get install git make -y
cd
git clone https://github.com/durantschoon/dot_files.git
cd dot_files
HOME=UPDATE_IF_YOURE_CHANGING_THIS sudo make all

Remember to set fonts in terminal programs for your agnoster glyphs:

  • ConEmu > (hamburger menu in top right) > Settings > General > Fonts > Main Console Font : set to one fo the meslos, like Meslo LG S DZ for Powerline
  • VS Code terminal: "terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline"
  • At this time there are missing gtk cursor's in WSL. Emacs will complain unless you run: sudo apt install adwaita-icon-theme-full

In current tests, seems to be working mostly as is with Windows Subsystem for Linux (WSL)... but I'm still debugging this...

Powershell

  1. Install choco

Something like this, maybe the choco command has to be run as admin

cd
choco install make
git clone https://github.com/durantschoon/dot_files.git
cd dot_files
make

About

My dotfiles except for emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published