alis (https) make httpie use https, added npm path

This commit is contained in:
Joty
2018-07-26 11:30:15 +09:30
parent c8ec6a8054
commit 82dbb20f94
2 changed files with 10 additions and 1 deletions

9
.zshrc
View File

@@ -114,6 +114,9 @@ source $ZSH/oh-my-zsh.sh
# Add to PATH to Install and run programs with "pip install --user" # Add to PATH to Install and run programs with "pip install --user"
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
NPM_PACKAGES="${HOME}/.npm"
PATH="$NPM_PACKAGES/bin:$PATH"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_OPS="--extended" export FZF_DEFAULT_OPS="--extended"
@@ -124,8 +127,14 @@ export MARKER_KEY_NEXT_PLACEHOLDER="\C-b" #change maker key binding from Ctr+t
export PATH=$PATH:~/.quickzsh/todo/bin #usig alias doesn't properly work export PATH=$PATH:~/.quickzsh/todo/bin #usig alias doesn't properly work
autoload -U compinit && compinit # zsh-completions autoload -U compinit && compinit # zsh-completions
# autoload bashcompinit # bash completions
# bashcompinit
SAVEHIST=50000 #save upto 50,000 lines in history. oh-my-zsh default is 10,000 SAVEHIST=50000 #save upto 50,000 lines in history. oh-my-zsh default is 10,000
#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
http https://$1 $2 $3 $4 $5 $6 $7 $8 $9 $10
}

View File

@@ -101,7 +101,7 @@ if [ ! -L ~/.quickzsh/todo/bin/todo.sh ]; then
ln -s ~/.quickzsh/todo/todo.sh ~/.quickzsh/todo/bin/todo.sh # so only .../bin is included in $PATH ln -s ~/.quickzsh/todo/todo.sh ~/.quickzsh/todo/bin/todo.sh # so only .../bin is included in $PATH
ln -s ~/.quickzsh/todo/todo.cfg ~/.todo.cfg # it expects it there or ~/todo.cfg or ~/.todo/config ln -s ~/.quickzsh/todo/todo.cfg ~/.todo.cfg # it expects it there or ~/todo.cfg or ~/.todo/config
else else
echo -e "todo.sh is already instlled in ~/.quickzsh/todo\n" echo -e "todo.sh is already instlled in ~/.quickzsh/todo/bin/\n"
fi fi
if [[ $1 == "--cp-hist" ]]; then if [[ $1 == "--cp-hist" ]]; then