dotfiles/dotfiles
2021-02-13 18:32:10 -06:00
..
colors/dracula/jetbrains first commit 2020-09-11 22:12:49 -05:00
img first commit 2020-09-11 22:12:49 -05:00
scripts (config): commented out unneeded things 2021-02-13 17:27:37 -06:00
templates first commit 2020-09-11 22:12:49 -05:00
vim first commit 2020-09-11 22:12:49 -05:00
wallpaper first commit 2020-09-11 22:12:49 -05:00
zsh first commit 2020-09-11 22:12:49 -05:00
.gitignore first commit 2020-09-11 22:12:49 -05:00
.gitmodules first commit 2020-09-11 22:12:49 -05:00
agignore first commit 2020-09-11 22:12:49 -05:00
aliases.zsh (config): Fixed up aliases 2021-02-13 17:25:00 -06:00
commit-conventions.txt (add): Adding commit conventions and gitconfig 2021-02-13 17:22:35 -06:00
eslintrc first commit 2020-09-11 22:12:49 -05:00
eslintrc.txt first commit 2020-09-11 22:12:49 -05:00
gemrc first commit 2020-09-11 22:12:49 -05:00
gitconfig (add): Adding commit conventions and gitconfig 2021-02-13 17:22:35 -06:00
gitignore first commit 2020-09-11 22:12:49 -05:00
gitmessage first commit 2020-09-11 22:12:49 -05:00
install (feat): Powerlevel10k changes 2021-02-13 18:32:10 -06:00
install-old new installer is no longer install-rewrite 2020-12-18 10:55:49 -06:00
LICENSE first commit 2020-09-11 22:12:49 -05:00
README.md first commit 2020-09-11 22:12:49 -05:00
rspec first commit 2020-09-11 22:12:49 -05:00
tmux-osx.conf first commit 2020-09-11 22:12:49 -05:00
tmux.conf first commit 2020-09-11 22:12:49 -05:00
vimrc first commit 2020-09-11 22:12:49 -05:00
zshrc (feat): Powerlevel10k changes 2021-02-13 18:32:10 -06:00

Install

./install will run a script that checks what OS you're on, and if you have all the necessary programs installed. If you dont, it installs them for you! Once the dependencies are installed, it will run any third party installations, and create symlinks for the necessary config files in the correct locations.

Dotfiles

Here's my collection of dotfiles I use on linux/osx environments. I continuously add to this repo over time, as I customise my dev environment. Feel free to fork this and modify the scripts/dotfiles to suit your own needs!

ZSH and Oh-My-Zsh must be installed:

Git Make sure to edit the gitconfig and add your credentials instead of mine

VIM Installation Tips I use neovim and vim-plug. So if you're using regular vim you might want to remove the neovim specific plugins from my vimrc. Also, you might need to run :PlugClean to remove the plugin directories then run :PlugInstall to reinstall them.

NVIM to VIM

For Linux and macOS, just add the above lines to the top of your ~/.config/nvim/init.vim, or %LOCALAPPDATA%\nvim\init.vim for Windows.

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc

Aliases

Here are the aliases I use in my shell to utilize these scripts. This allows you to save this folder wherever you want. Just modify the path if you dont clone to your home directory.

alias tmpc='source ~/.dotfiles/scripts/CTemplate.sh'
alias tdev='source ~/.dotfiles/scripts/tmux-dev.sh'
alias project='source ~/.dotfiles/scripts/ProjectLayout.sh'
alias mdtopdf='source ~/.dotfiles/scripts/MDtoPDF.sh'

MDtoPDF

MDtoPDF Uses Python Markdown and wkhtmltopdf to convert a markdown file into a pdf file.

Usage: mdtopdf <filenamewithoutextension> <optionaldirectory>
Example: mdtopdf notes pdf would convert notes.md to a pdf and save it to the /pdf directory

This script uses Python Markdown to export the markdown file to an html file, then it uses wkhtmltopdf to convert the html file to a pdf. It can take a little time to convert to PDF, but is a lot simpler than using pandoc in my opinion.

Install (Requires Python):

$ sudo pip install markdown

Install: $ sudo apt-get install wkhtmltopdf

ProjectLayout.sh

  • Creates a file system structure to begin a project. The Makefile in files/ is really only setup for C at the moment. Edit it based on the project's needs.

Tmux-Dev.sh

This is a simple script I made to setup a tmux environment, it looks like this when its running. I usually have code open in vim on the left, a man page or other code open in the bottom right corner, and use the top right for running commands and compiling on the go. tmux

CTemplate.sh

This script copies a skeleton C file to either your current directory or one you provide. This could also just be done with a copy alias. I use a script so I can provide a custom file name/directory.

  • Usage: ~/.dotfiles/scripts/CTemplate.sh <Directory/Filename>