From bcc866236cca05f6caf78a6c3d93a63c9bf19f7c Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 6 Mar 2021 12:31:59 +0100 Subject: add .zshrc, update .vimrc --- .zshrc | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..15ed2e8 --- /dev/null +++ b/.zshrc @@ -0,0 +1,48 @@ +# Environment +export YAEGI_DOT_CMD='dotty -' + +# gnuplot display in terminal +export GNUTERM='sixelgd enhanced truecolor font "arial,9"' + +# Auto completion +FPATH=/opt/homebrew/share/zsh-completions:/opt/homebrew/share/zsh/site-functions:$FPATH +autoload -Uz compinit && compinit + +setopt share_history + +# Aliases +alias pt='sudo port -v' +alias pu='pt selfupdate && pt upgrade outdated' + +alias by='go build ./cmd/yaegi' +alias cy='cd ~/go/src/github.com/traefik/yaegi' +alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME' +#alias git='hub' +alias ll='ls -AFGl' +alias ls='ls -AG' +alias ya='rlwrap yaegi' + +export MANWIDTH=92 + +# Functions +man() { + local width=$(tput cols) + [ $width -gt $MANWIDTH ] && width=$MANWIDTH + env MANWIDTH=$width man "$@" +} + +meteo() { + local request="wttr.in/${1-Toulouse}?F&T" + [ "$(tput cols)" -lt 125 ] && request+='&n' + curl -H "Accept-Language: fr" --compressed "$request" +} + +p() { [ -f "$1" -a ! -x "$1" ] && less -XF $1 || "$@" 2>&1 | less -XF ; } + +ty() { go test -v -short ./interp; } + +# Prompt +source ~/.zsh-powerline.sh + +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh + -- cgit v1.2.3