Skip to content

Commit

Permalink
refactor: remove hub as a dependency and alias
Browse files Browse the repository at this point in the history
- remove hub from Brewfile
- remove aliasing git to hub
- add `git browse` alias to make up for the one feature from hub still being used
  • Loading branch information
nicknisi committed Sep 29, 2020
1 parent 75c5a39 commit 27e7a87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Brewfile
Expand Up @@ -79,7 +79,6 @@ brew "gnupg"
brew "grep"
brew "highlight"
brew "htop"
brew "hub"
brew "jq"
brew "lazydocker"
brew "lazygit"
Expand Down
3 changes: 3 additions & 0 deletions git/gitconfig.symlink
Expand Up @@ -22,6 +22,9 @@
cane = commit --amend --no-edit
poh = push -u origin head

# gh commands
browse = "!gh repo view --web"

# rebase commands
cont = rebase --continue
conf = "!git s | grep ^U"
Expand Down
5 changes: 0 additions & 5 deletions zsh/zshrc.symlink
Expand Up @@ -152,11 +152,6 @@ export RIPGREP_CONFIG_PATH="$HOME/.rgrc"
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"

# alias git to hub
if type hub > /dev/null 2>&1; then
eval "$(hub alias -s)"
fi

# move to next word with ctrl-F
bindkey -M viins "^F" vi-forward-word
# Move to end of line with ctrl-E
Expand Down

0 comments on commit 27e7a87

Please sign in to comment.