Skip to content

lundjordan/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Just another dotfile repo

DISCLAIMER:

I recommend only viewing my files and not running things like initial_setup.py. This setup is highly tailored for me and will probably cause spurious/confusing results for you...

  • initial_setup.py

This script will clone oh-my-zsh in ~/.oh-my-zsh and create some links in my home dir to files/dirs in this dotfiles repo

NOTE: If the dest link path exists, a backup is created incase it contains configurations that I did not mean to overwrite. The backup dir is in ~/dotfiles_backup

Mac os x setup

Install packages

install from app store

  • 1password
  • moom
  • things
  • daisydisk
  • slack
  • Xcode

install unmanaged packages

install brew

https://brew.sh/

fzf git mercurial openssh pyenv pyenv-virtualenv tmux vim wget zlib zsh node

install gpgtools

https://gpgtools.org/

install docker

https://store.docker.com/editions/community/docker-ce-desktop-mac

setup dotfiles

get secrets from backup disk

copy .gnupg dir, .ssh dir , and .zsh_history from backup

create some initial homedirs

mkdir -p ~/devel/personal
mkdir -p ~/opensrc/bitbucket
mkdir -p ~/opensrc/github
mkdir ~/.vim_swps
mkdir ~/.iterm
# mkdir -p ~/.oh-my-zsh/custom/plugins/jlundmercurial

setup oh-my-zsh

https://ohmyz.sh/#install

clone some needed repos

git clone git@github.com:lundjordan/dotfiles.git ~/devel/personal/dotfiles
# hg clone https://bitbucket.org/sjl/hg-prompt ~/opensrc/bitbucket/hg-prompt
# git clone https://github.com/powerline/fonts.git --depth=1

link homedir paths to dotfiles

Option 1

initial_setup.py sort of works but I stopped using it.

cd ~/devel/personal/dotfiles && python intial_setup.py

### Option 2

####  first remove the backup copies of ssh and gpg config files and instead use dotfiles versions assuming they are the same

rm ~/.ssh/config ~/.gnupg/gpg.conf ~/.zshrc


#### now link all dotfiles configs to home dir
ln -s ~/devel/personal/dotfiles/ssh/config ~/.ssh/config
ln -s ~/devel/personal/dotfiles/gpg/gpg.conf ~/.gnupg/gpg.conf
ln -s ~/devel/personal/dotfiles/hg/hgrc ~/.hgrc
ln -s ~/devel/personal/dotfiles/git/gitconfig ~/.gitconfig
ln -s ~/devel/personal/dotfiles/tmux/tmux.conf ~/.tmux.conf
ln -s ~/devel/personal/dotfiles/vim/vimrc ~/.vimrc
ln -s ~/devel/personal/dotfiles/iterm/com.googlecode.iterm2.plist ~/.iterm/com.googlecode.iterm2.plist  # add in iterm pref
ln -s ~/devel/personal/dotfiles/zsh/jlund_juang.zsh-theme  ~/.oh-my-zsh/custom/themes/jlund_juang.zsh-theme
ln -s ~/devel/personal/dotfiles/zsh/aliases.zsh  ~/.oh-my-zsh/custom/aliases.zsh
ln -s ~/devel/personal/dotfiles/zsh/env.zsh  ~/.oh-my-zsh/custom/env.zsh
ln -s ~/devel/personal/dotfiles/zsh/config.zsh  ~/.oh-my-zsh/custom/config.zsh
ln -s ~/devel/personal/dotfiles/zsh/zshrc ~/.zshrc```

setup pyenv

# https://gist.github.com/eliangcs/43a51f5c95dd9b848ddc
pyenv install --list
pyenv install $python_version
pyenv global $python_version # set version of python from any non local defined dir

install poetry

https://python-poetry.org/docs/

virtualenvs

https://github.com/pyenv/pyenv-virtualenv#usage
pyenv virtualenv [$python_version] $virtualenv_name
cd $some_project
pyenv local $virtualenv_name|$python_version  # sets .python-version in cwd with the python env you want

vim setup

# managing plugins with vim https://gist.github.com/manasthakur/ab4cf8d32a28ea38271ac0d07373bb53
# setup vim https://gist.github.com/manasthakur/d4dc9a610884c60d944a4dd97f0b3560
git clone --recursive git@github.com:lundjordan/vimfiles.git ~/devel/personal/vimfiles
ln -s ~/devel/personal/vimfiles ~/.vim
vim
:helptags ALL
:CocInstall coc-python   # for coc python

install powerline status bar for tmux and vim

# awkward but needs to be installed in pyenv version for shell and system for vim
pyenv global 3
pip install powerline-status

pyenv global system
pip3 install powerline-status

#switch back to main global python version
pyenv global 3

# install fonts
cd ~/opensrc/github/fonts
./install.sh
# add font to iterm: https://gist.github.com/wm/4750511#configure-iterm-to-use-the-powerline-fonts

About

just another dotfile repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published