beyarkay / dotfiles

All config and dot files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boyd Kane's dotfiles

This repository is not designed for general use, however you might find some useful tid-bits if you're just looking around. I can (and do) introduce breaking changes at any point and without warning.

At time of writing, the tools I use are:

  • zsh
  • git
  • iTerm2
  • tmux
  • RaspberryPi's

Cool Highlights

Zsh prompt

Usually includes: time {host alias} short pwd (git status)

basic prompt

A note on the git integration:

prompt-with-git

If I'm in a repository, I'll see the name of the current branch like (main). If I've modified 1 files but still need to git add them, then I'll see something like (a1 main). If I've also got 2 files which have been git add-ed but not git commit-ed, then I'll see something like (a1c2 main). Finally, if I've also got 3 commits which haven't been git push-ed to remote, then I'll see something like (a1c2p3 main)

git-hidden

The git part of the prompt is hidden if I'm not inside a git repository.

host-alias

The hostname is checked, and if it's a machine I often use (raspberry pi, personal, AWS EC2 instance, etc) then a colour coded abbreviation ({mac}, {rpi}, {aws}, etc) is added to the prompt. If the host isn't recognised, then the full hostname is added to the prompt.

list-change-directory

ls will be called automatically after cd via a function.

running-stopped-jobs

If I've got jobs running / stopped in the background, a little 1r or 2s will be added to the prompt (for 1 running, or 2 stopped).

authentication-required

If authentication is needed for various tools, a single character is added to the prompt to remind me of that.

short-pwd

The pwd is included, except it's shortened so that it doesn't take up the whole screenwidth. The current directory is highlighted, but all higher level directories are shortened to one character.

The prompt will also include a line like kill 3947 (86.3% /Applications/Google Chrome.app) if any application starts using more than 75% CPU or so.

OS-aware install script

I still need to describe this.

TODOs

  • Maybe add a timer option, where timer 10 would start a timer in the background for 10 seconds and then add a readout of the timer progress to PROMPT?
  • Add a slim-terminal window
    • would have differennt items on different lines if the terminal window is slimmer than usual

About

All config and dot files


Languages

Language:Shell 77.5%Language:Vim Script 20.9%Language:Rust 1.6%