Git Product home page Git Product logo

dotfiles's Introduction

==============

๐Ÿ’พ Jefferey's Dotfiles and Vim config

build status

======= These are my dotfiles. There are many like them, but these are mine. This started around 2001 or so when I used lots of different machines and environments. Now I mostly use macOS and Linux but still keep the environment in sync.

CleanShot 2021-10-01 at 20 15 23@2x

A random prompt color is picked at first install. Edit .zshlocal for details.

Optionally create a .postinstall with some machine-specific commands, like git config --global user.email "[email protected]"". You can also create a .vimlocal and .gvimlocal for machine-specific Vim customizations.

Customizing

  • Fork this repo
  • Update install.zsh to point at your own
  • Go nuts

Common Tricks

Here's what I use the most often on the command line:

  • j foo to cd to the most commonly used directory that fuzzy-matches foo (via autojump)
  • l and ll for long directory listings, ltr for showing the most recent files
  • Other single-character aliases: g for git, d for docker, dc for docker-compose, k for tree, y for yarn
  • Meta-L which appends 2>&1|less to the command and hits Enter, running the command and viewing its output in a pager
  • ZU to update Vim plugins or just ZR to restart Zsh after a .zshrc change
  • Searching with rg (ripgrep), then Ctrl-AvEnter (changing rg to vrg) to edit all of the files that matched in Vim
  • cding to a directory and then using Meta-P to pop to the previous directory (since auto_pushd is enabled and silent)
  • psl to search for processes (since I never remember the pgrep syntax and it's never been consistent across platforms)
  • open and trash commands that work across macOS and Linux
  • If I'm typing a command but realize that I need to do something else first, Meta-Q queues the current command and clears the command line, then pastes it back in after I enter and run another command first.
  • Git commands: st for status, gd for a git diff, gl for a quick log, sci <message> to commit everything with a message, or gap to cherry pick and then gc <message> to commit.
  • Fuzzy history search using Ctrl-R and FZF
  • Each host gets a different colorprompt command in its ~/.zshlocal. I use ansimodes or 256-colors.sh to pick a color. (Both are already in the ~/bin/ directory, which is added to the $PATH.)

See also

dotfiles's People

Contributors

statico avatar jetpeter avatar foxmask avatar jgillman avatar

Watchers

James Cloos 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.