Added cheat.sh (^・o・^)ノ”

This commit is contained in:
Joty
2018-07-26 14:47:06 +09:30
parent b6ddf198ce
commit 78fffa02c6
2 changed files with 9 additions and 1 deletions

9
.zshrc
View File

@@ -135,6 +135,13 @@ SAVEHIST=50000 #save upto 50,000 lines in history. oh-my-zsh default is 10,
#setopt hist_ignore_all_dups # dont record duplicated entries in history during a single session #setopt hist_ignore_all_dups # dont record duplicated entries in history during a single session
alias wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address alias wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address
alias l="ls -lah" alias l="ls -lah"
https() { # make httpie use https by default
https() { # make httpie use https
http https://$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 http https://$1 $2 $3 $4 $5 $6 $7 $8 $9 $10
} }
# cheat sheets (github.com/chubin/cheat.sh), find out how to use commands
# example 'cheat tar'
cheat() {
curl https://cheat.sh/$1 $2 $3 $4 $5 $6 $7 $8 $9 $10
}

View File

@@ -11,6 +11,7 @@ Quickly install and setup zsh and oh-my-zsh (https://github.com/robbyrussell/oh-
* k (https://github.com/supercrabtree/k) * k (https://github.com/supercrabtree/k)
* marker (https://github.com/pindexis/marker) * marker (https://github.com/pindexis/marker)
* todotxt (https://github.com/todotxt/todo.txt-cli) * todotxt (https://github.com/todotxt/todo.txt-cli)
* cheat.sh (https://github.com/chubin/cheat.sh) just an alias is all we need
All oh-my-zsh plugins are installed under ~/.oh-my-zsh All oh-my-zsh plugins are installed under ~/.oh-my-zsh
Other tools (fzf,marker,todo) are installed in ~/.quickzsh Other tools (fzf,marker,todo) are installed in ~/.quickzsh