Giter VIP home page Giter VIP logo

dotfiles's Introduction

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 [email protected]: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 [email protected]: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

dotfiles's People

Contributors

lundjordan avatar

Stargazers

 avatar  avatar

Watchers

 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.