Skip to content

๐Ÿ—ƒ My Linux and macOS configuration files

Notifications You must be signed in to change notification settings

skylerspaeth/DotFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

38 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DotFiles

This repo contains the most important of my Linux and macOS dotfiles. Currently, this includes:

Installation

If you'd like to install any of the RCs from this repo, simply wget the one you want. For instance, for zshrc (from anywhere):

wget -P ~ https://raw.githubusercontent.com/skylerspaeth/DotFiles/master/.zshrc

Keep in mind wget will append a .1 if the file already exists, so you'd need to rename accordingly.

Or, if you don't have wget, with curl:

(cd ~ && curl -O https://raw.githubusercontent.com/skylerspaeth/DotFiles/master/.zshrc)

Since curl will overwrite an existing file, make sure you don't care about anything in your current zshrc (if present).

As a reminder, you'll need to source your shell RCs after making changes, like:

source ~/.zshrc

.zshrc

Zsh Prompt

This RC really just contains a custom prompt. My zsh prompt shows your current git branch in brackets, if applicable, and changes the color of the % character to red if the previous command fails with a nonzero exit code.

The git branch is retrieved using Will Bender's (@Ragnoroct) extremely quick git branch getter function from his bashrc. He cites David Wolever's (@wolever) bashrc for most of the git branch getter work.

The prompt uses the following format:

username@[hostname] ~/path [branch] %

Accent colors are added to the bracketed text (hostname & branch) to make the prompt more visually appealing.

.vimrc

I don't have much to say about this RC. It's literally just my vimrc, the way I like vim. One thing to note is that Vim-Plug is required for vim to not error out on launch due to a plugin I'm importing. You can choose to omit this part from your RC, install Vim-Plug manually, or add the installer to your vimrc to set it up automatically on any computer.

Lately I've been setting up many different computers with my dot files, so I figured I should just include the comamnds for everything vim to copy & paste:

(cd ~ && curl -O https://raw.githubusercontent.com/skylerspaeth/DotFiles/master/.vimrc)
(mkdir -p ~/.vim/colors && cd $_ && curl -O https://raw.githubusercontent.com/skylerspaeth/DotFiles/master/.vim/colors/PaperColor.vim)

autoexec.cfg

If you play CS:GO, having an autoexec is arguably just as important as a zsh or vimrc. This allows you to configure settings, binds, macros, etc. in one place and have it consistently replicated across different computers. Mine contains my crosshair, a jumpthrow bind, and a bunch of say binds.

About

๐Ÿ—ƒ My Linux and macOS configuration files

Resources

Stars

Watchers

Forks

Packages

No packages published