Skip to content

Commit

Permalink
Merge branch 'upstream/master' into pr/zsh-config-files
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Michael Frank committed May 27, 2018
2 parents 0011734 + 565cf5c commit b00f261
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ atom.symlink/compile-cache/
atom.symlink/packages
atom.symlink/storage
atom.symlink/themes
atom.symlink/blob-store
atom.symlink/recovery

git/gitconfig.local.symlink
4 changes: 4 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
cask_args appdir: '/Applications'

tap 'homebrew/bundle'
tap 'puma/puma'

brew 'ack'
brew 'coreutils'
brew 'go'
brew 'grc'
brew 'imagemagick'
brew 'jp2a'
brew 'jq'
brew 'libcaca', args: ['with-imlib2']
brew 'libgit2'
brew 'openssl'
brew 'node'
brew 'readline'
brew 'postgresql'
brew 'puma/puma/puma-dev'
brew 'ruby-build'
brew 'rbenv'
brew 'roundup'
brew 'spaceman-diff'
brew 'spark'
brew 'unrar'
brew 'wget'
brew 'yarn'
brew 'youtube-dl'

cask '1password'
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ There's a few special files in the hierarchy.
- **topic/\*logout.zsh**: Any file ending in `logout.zsh` is
loaded for login shells only and only when you exit/logout the
shell.
- **topic/install.sh**: Any file named `install.sh` is executed when you
run `script/install`. To avoid being loaded automatically, its
extension is `.sh`, not `.zsh`.
- **topic/\*.symlink**: Any files ending in `*.symlink` get symlinked into
your `$HOME`. This is so you can keep all of those versioned in your dotfiles
but still keep those autoloaded files in your home directory. These get
Expand Down
3 changes: 3 additions & 0 deletions atom.symlink/config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
]
editor:
fontFamily: "Menlo"
fontSize: 15
invisibles: {}
showIndentGuide: true
softWrapAtPreferredLineLength: true
"go-plus":
goPath: "/Users/holman/Code/go"
"linter-eslint":
useGlobalEslint: true
"release-notes":
viewedVersion: "0.89.0"
"spell-check":
Expand Down
11 changes: 11 additions & 0 deletions bin/atom-package-backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# Usage: atom-package-backup
#
# Saves a list of your currently installed atom packages to
# ~/.dotfiles/atom.symlink/packages.txt suitable for install
# via atom-package-install

set -e

apm list --installed --bare > ~/.dotfiles/atom.symlink/packages.txt
13 changes: 13 additions & 0 deletions bin/atom-package-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
#
# Usage: atom-package-install
#
# Installs the atom packages listed in your packages.txt file
# located at ~/.dotfiles/atom.symlink/packages.txt
#
# You can generate a new list based on currently installed
# packages via atom-package-backup

set -e

apm install --packages-file ~/.dotfiles/atom.symlink/packages.txt
7 changes: 1 addition & 6 deletions bin/e
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@
# $ e .
# $ e /usr/local
# # => opens the specified directory in your editor

if [ "$1" = "" ] ; then
exec $EDITOR .
else
exec $EDITOR "$1"
fi
exec "$EDITOR" "${1:-.}"
6 changes: 3 additions & 3 deletions bin/search
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
#
# Quick search in a directory for a string ($1).
# Quick search in a directory for a string ($@).
#
set -e

# use -iru to search directories ack usually ignores (like .git)
if [ -x /usr/bin/ack-grep ]; then
ack-grep -i $1
ack-grep -i "$@"
else
ack -i $1
ack -i "$@"
fi
2 changes: 2 additions & 0 deletions docker/aliases.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alias d='docker $*'
alias d-c='docker-compose $*'
5 changes: 4 additions & 1 deletion git/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ fi
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git push origin HEAD'
alias gd='git diff'

# Remove `+` and `-` from start of diff lines; just rely upon color.
alias gd='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r'

alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
Expand Down
2 changes: 1 addition & 1 deletion homebrew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
elif test "$(expr substr $(uname -s) 1 5)" = "Linux"
then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
fi

fi
Expand Down
4 changes: 4 additions & 0 deletions yarn/path.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# sup yarn
# https://yarnpkg.com

export PATH="$HOME/.yarn/bin:$PATH"
9 changes: 0 additions & 9 deletions zsh/config.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
if [[ -n $SSH_CONNECTION ]]; then
export PS1='%m:%3~$(git_info_for_prompt)%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi

export LSCOLORS="exfxcxdxbxegedabagacad"
export CLICOLOR=true

Expand Down Expand Up @@ -37,12 +31,9 @@ setopt HIST_REDUCE_BLANKS
# like: git comm-[tab]
setopt complete_aliases

zle -N newtab

bindkey '^[^[[D' backward-word
bindkey '^[^[[C' forward-word
bindkey '^[[5D' beginning-of-line
bindkey '^[[5C' end-of-line
bindkey '^[[3~' delete-char
bindkey '^[^N' newtab
bindkey '^?' backward-delete-char

0 comments on commit b00f261

Please sign in to comment.