Skip to content

atyrode/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS (Sonoma) dotfiles

Quickstart

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/atyrode/dotfiles/main/install.sh)"

git clone git@github.com:atyrode/dotfiles.git && cd dotfiles && ./setup.sh && cd .. && rm -rf dotfiles

oh-my-zsh config setup :

  1. cd ~/Documents
  2. git clone git@github.com:atyrode/dotfiles.git dotfiles
  3. git checkout macos
  4. cd dotfiles
  5. ln -s ~/Documents/dotfiles/zsh/.zshrc ~/.zshrc
  6. source ~/.zshrc

Utils :

  • prompt_yes_no() prints first argument followed by (y/n), then reads user input and returns 0 on Y/y or 1 on N/n

Color :

  • ok(), ko(), folder(), file() prints $1 in green, red, cyan or yellow respectively

Shell :

  • zconf shortcuts source ~/.zshrc
  • z (zoxide) replaces cd
  • fzf will be used on Ctrl+R (search)

Python :

  • python & pip shortcuts python3 & pip3

  • venv is a python venv manager which toggles the venv on or off in the current working directy. It will create a venv if it doesn't exist (called 'venv') and will offer to add it to .gitignore.

  • Helper functions for venv: venv_exists(), create_venv(), gitignore_exists(), create_gitignore(), venv_in_gitignore(), add_venv_to_gitignore(), activate_venv(), deactivate_venv(), venv_is_active()

  • pipreq is a command that pip install requirements in the current venv, if it exists and is activated, or will otherwise prompt you to

Tmux conf:

git clone https://github.com/gpakosz/.tmux.git ln -s -f "$(pwd)/.tmux/.tmux.conf" ~/.tmux.conf cp .tmux/.tmux.conf.local ~ tmux source ~/.tmux.conf

TODO: "zreconf" which pops a gui you can use to toggle some aliases (bat, fd, zoxide, fzf, etc...)

About

atyrode dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published