Browse Source

add GitHub hub CLI (with a couple aliases) as well as AWS SAM

master
ojizero 9 months ago
parent
commit
a6b56a3b27
3 changed files with 17 additions and 2 deletions
  1. 2
    0
      .gitconfig
  2. 12
    2
      .zshrc
  3. 3
    0
      Brewfile

+ 2
- 0
.gitconfig View File

@@ -48,5 +48,7 @@

ini = init

newgh = "!ghnew() { \\git init ; \\hub create $@ }; ghnew"

[push]
followTags = true

+ 12
- 2
.zshrc View File

@@ -22,7 +22,7 @@ eval "$(goenv init -)"
eval "$(rbenv init -)"
eval "$(thefuck --alias)"

# Aliases
# Aliases and functions
#

alias f='\fuck'
@@ -38,7 +38,7 @@ alias d='\dirs -v'
alias p='\pushd'
alias pp='\popd'
alias mkdir='\mkdir -vp'
alias ipglobal='dig +short myip.opendns.com @resolver1.opendns.com'
alias ipglobal='\dig +short myip.opendns.com @resolver1.opendns.com'
alias nsenter='\docker run -it --rm --privileged --pid=host justincormack/nsenter1'
alias dockerdive='\docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive'
alias dockerclean='\docker rmi --force $(docker images -q)'
@@ -52,6 +52,16 @@ function git {
}
alias g='git'

function hub {
if [[ $# -gt 0 ]]; then
/usr/bin/env hub $@
else
/usr/bin/env hub status --short --branch
fi
}
alias gh='hub'
alias github='hub'

function npm {
if [[ $# -gt 0 ]]; then
/usr/bin/env npm $@

+ 3
- 0
Brewfile View File

@@ -1,3 +1,4 @@
tap "aws/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
@@ -12,6 +13,7 @@ brew "go"
brew "goenv"
brew "grep"
brew "helm"
brew "hub"
brew "jq"
brew "jsonnet"
brew "kubernetes-cli"
@@ -28,6 +30,7 @@ brew "unrar"
brew "vagrant-completion"
brew "watch"
brew "wget"
brew "aws/tap/aws-sam-cli"
brew "nodenv/nodenv/node-build-update-defs"
brew "nodenv/nodenv/nodenv-aliases"
brew "nodenv/nodenv/nodenv-package-rehash"

Loading…
Cancel
Save