Code Monkey home page Code Monkey logo

dotfiles's Introduction

      ██            ██     ████ ██  ██
     ░██           ░██    ░██░ ░░  ░██
     ░██  ██████  ██████ ██████ ██ ░██  █████   ██████
  ██████ ██░░░░██░░░██░ ░░░██░ ░██ ░██ ██░░░██ ██░░░░
 ██░░░██░██   ░██  ░██    ░██  ░██ ░██░███████░░█████
░██  ░██░██   ░██  ░██    ░██  ░██ ░██░██░░░░  ░░░░░██
░░██████░░██████   ░░██   ░██  ░██ ███░░██████ ██████
 ░░░░░░  ░░░░░░     ░░    ░░   ░░ ░░░  ░░░░░░ ░░░░░░

Installation

Before installing, make sure you grab your favorite font from nerd-fonts and install it, otherwise things won't look right.

# Clone the repo to ~/dotfiles
$ git clone --recursive [email protected]:bradp/dotfiles.git ~/dotfiles

# Run the install command
$ bash ~/dotfiles/misc/install

What is included

  • .config/
  • .gnupg/ GPG settings
  • .vim/ Vim plugins
  • bin/ Scripts and commands. See Scripts & Commands for info.
  • misc/ Miscellaneous files
    • cows/ Custom cows for cowsay
    • icons/ Replacement icons for app command.
  • zsh-custom/ This is where zsh plugins & themes go, as well as any files to be sourced
    • plugins/ Plugins
    • themes/ Themes
      • parbs.zsh-theme/ My custom theme with a very informative prompt
    • _secret.zsh Ignored via git, a good place to put any exported API tokens for example
    • aliases.zsh Aliases
    • exports.zsh Environment exports
    • functions.zsh Like aliases, but usually more complex
    • fzf.zsh Functions that interact with fzf
    • keybinds.zsh ZSH keybindings
    • misc.zsh Whatever things
    • zshrc-loaded Gets sourced at the end of .zshrc, after oh-my-zsh has loaded.
  • .curlrc curl settings.
  • .gitconfig Set up git exactly how it should be
  • .global_ignore Global gitignore, applies to all git repos
  • .gvimrc Vim settings for the GUI
  • .hushlogin Stop the login message when logging into remote servers
  • .npmrc npm settings
  • .nuxtrc Nuxt settings
  • .vimrc Vim settings
  • .zshrc The magic that makes Zsh and oh-my-zsh behave amazingly.
  • Brewfile List of things to install via brew, brew-cask, and mas

Scripts & Commands

Scripts in /bin

Name Description
$ Strips out the leading $ when you paste a command.
add-dock-spacer Adds a blank space in your Mac's dock
api Helper to easily call APIs
backup Backup various things
chars Display all available nerd-font characters
clean-filename Removes spaces, removes numbers, and lowercases a filename
day Helper to get your computer ready for the start or end of the day
emoji Emoji picker to copy emoji to your clipboard
gh-backup Backup various GitHub things
gh-backup-repo Backup a GitHub repo
git-current-branch git current-branch or current-branch displays your git branch
git-submodule-remove Helper to remove a git submodule
hr Output a horizontal line in the terminal
meow Alternative catimg script
mirror-site Run httrack on a full website
pocket-to-notion Export all Pocket items to a Notion DB.
pubkey Display public key and copy to clipboard.
srht Add sr.ht as a secondary origin remote to a repo, to allow for pushing to both at once.
todo Add an item to a todo list in Notion
wayback Save items to the Archive.org Wayback Machine
yt-backup Download a youtube video and push it to b2
ytdl Wrapper for youtube-dlp with preffered settings

fzf commands

Name Description
app Launch apps. Will display all installed Mac apps with icons.
art Run an artisan script
bin Run a script from the /bin directory
bookmarks Display and open bookmarks from Chrome
co Checkout local git branch
comp Run a composer script
falias Display and run aliases
ffh Choose and connect to an SSH host
ffunc Display and run a function
gtag Create a new git tag according to SemVar
npmr Run an npm script
proj Open a VSCode project
run Combines bin and ffunc to allow you to any of your scripts or commands

Functions

Name Description
1p Helper to run 1Password cli
battery Get battery percent
bak Move <name> (files and folders) to <name>.bak
unbak Move <name>.bak to <name>
deploy Deployments for hugo sites
ha Grep for a history entry
hook Run a git hook
mkd Make a directory and cd into it
pa Grep for a running process
purge-cloudflare-cache Purge Cloudflare cache
root Go to the root of git directory
s Quickly jump to site directory
site Quickly jump to Sites/www/site

Aliases

Note: This is just a few of the many aliases set up.

Name Description
3d <text> Display text as 3d
c Alias of pbcopy
p Alias of pbpaste
cleanup Delete all .DS_Store files
codeo <file> Open a file in the current VSCode window
f File picker using fzf
gcm Allows you to do gcm This is my commit message
vu Bring up a vagrant machine and ssh into it.
x Way better than ls
xcode-agree Because it's a pain to have to agree every update

dotfiles's People

Contributors

bradp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

nice web site

Hopefully I helped solve an embarassing problem before it was too late. Just tsumbled on your repository from your web site. Keep up the good work!

Question about sourced files

Hello there,

Firstly, thank you for your Guide article and great idea for breaking up the .zshrc files!

Is there possible to put " plugins=(...) "into an independent file i.e plugins in my sourced directory and source to it? Instead of putting those in the .zshrc file?

I recently ran into the issue that it could not launch the plugins automatically after machine booted, but have to source the .zshrc file afte booting?

Thank you

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.