Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Apr 6, 2023
1 parent 332525e commit 04eed4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 33 deletions.
34 changes: 4 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ I would not suggest you just wholesale use my dotfiles. But there's a few files

#### shell

This repo contains config for fish and bash. As of March 2016, I'm using fish shell mostly, but fall back to bash once in a while. The bash and fish stuff are both well maintained. If you're using fish you'll want to do a `git submodule update --init`.
This repo contains config for fish and bash. As of 2016, I primarily use `fish` shell, but fall back to `bash` once in a while. The bash and fish stuff are both well maintained. If you're using fish you'll want to do a `git submodule update --init`.

## my favorite parts.

Expand All @@ -32,6 +32,7 @@ Basically it makes typing into the prompt amazing.
* tab all the livelong day.

### [.gitconfig](./gitconfig)
* err'body gotta have their aliases. I'm no different.

### Moving around in folders (`z`, `...`, `cdf`)
`z` helps you jump around to whatever folder. It uses actual real magic to determine where you should jump to. Seperately there's some `...` aliases to shorten `cd ../..` and `..`, `....` etc. Then, if you have a folder open in Finder, `cdf` will bring you to it.
Expand All @@ -46,21 +47,11 @@ cdf # cd to whatever's up in Finder
Lastly, I use `open .` to open Finder from this path. (That's just available normally.)



## overview of files

#### Automatic config
* `.vimrc`, `.vim` - vim config, obv.
* `.inputrc` - behavior of the actual prompt line

#### shell environment
* `.aliases`
* `.bash_profile`
* `.bash_prompt`
* `.bashrc`
* `.exports`
* `.functions`
* `.extra` - not included, explained below
* `.aliases`, `.bash_profile`, `.bash_prompt`, `.bashrc`, `.exports`, `.functions`

#### manual run
* `setup-a-new-machine.sh` - random apps i need installed
Expand All @@ -81,28 +72,11 @@ There will be items that don't belong to be committed to a git repo, because eit

I have some EXPORTS, my PATH construction, and a few aliases for ssh'ing into my servers in there.

I don't know how other folks manage their $PATH, but this is how I do mine:

```shell
# The top-most paths override here.
PATH=/opt/local/bin
PATH=$PATH:/opt/local/sbin
PATH=$PATH:/bin
PATH=$PATH:~/.rvm/bin
PATH=$PATH:~/code/git-friendly
# ...

export PATH
```


### Sensible OS X defaults
### Sensible OS X defaults in `.macos`

Mathias's repo is the canonical for this, but you should probably run his or mine after reviewing it.

```bash
./.macos
```

### `~/bin`

Expand Down
8 changes: 5 additions & 3 deletions brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ brew install shellcheck # linting for .sh files
brew install mtr

# allow mtr to run without sudo
mtrlocation=$(brew info mtr | grep Cellar | sed -e 's/ (.*//') # e.g. `/Users/paulirish/homebrew/Cellar/mtr/0.86`
sudo chmod 4755 $mtrlocation/sbin/mtr
sudo chown root $mtrlocation/sbin/mtr
# https://github.com/traviscross/mtr/issues/204#issuecomment-487325796
sudo chmod 4755 $location_of_mtr-packet
# on my machine i have a `/usr/local/sbin/mtr-packet` and root owns local/sbin. (thx google!?)
# thus, i dont use the homebrew mtr.



# Install other useful binaries
Expand Down

0 comments on commit 04eed4f

Please sign in to comment.