From 71b1feba6e24e3958e37ca36af23a27531166d32 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 15 Apr 2020 23:48:39 +0200 Subject: [PATCH] Add auto push directory stack to actually use the dirstack, change the 0x0 pastebin to a more general alias and add corrections --- completions.zsh | 2 +- custom/aliases.zsh | 1 + custom/functions.zsh | 10 ---------- preferences.zsh | 2 +- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/completions.zsh b/completions.zsh index 9edffee..3b5a8cd 100644 --- a/completions.zsh +++ b/completions.zsh @@ -8,7 +8,7 @@ zstyle ':completion:*' list-suffixes true zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' rehash true zstyle ':completion:*' menu select -zstyle ':completion:*' completer _complete _match _approximate +zstyle ':completion:*' completer _complete _match _correct _approximate zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:functions' ignored-patterns '_*' diff --git a/custom/aliases.zsh b/custom/aliases.zsh index c026551..682e84f 100644 --- a/custom/aliases.zsh +++ b/custom/aliases.zsh @@ -3,3 +3,4 @@ alias ytdldown='youtube-dl --no-part --newline -ixcw --audio-format best --add-m alias ls='ls --color=auto' alias grep='grep --color=auto' alias diff='diff --color=auto' +alias paste="curl -F'file=@-'" diff --git a/custom/functions.zsh b/custom/functions.zsh index 5d437a6..660bfaf 100644 --- a/custom/functions.zsh +++ b/custom/functions.zsh @@ -4,16 +4,6 @@ function gitsubrepo { function osutab { xinput set-prop 'UGTABLET 6 inch PenTablet Pen (0)' --type=float 153 3.5 0 -0.5 0 2.9 0 0 0 1 } -function tonullpointer { - if [ -z ${1} ]; then - RANDFN=${RANDOM} - > /tmp/${RANDFN} - curl -F"file=@/tmp/${RANDFN}" http://0x0.st - rm /tmp/${RANDFN} - else - curl -F"file=@${1}" http://0x0.st - fi -} function ffmpeg-gif { ffmpeg -hwaccel vdpau -ss $2 -to $3 -i $1 -r 60 -pix_fmt bgr8 -vf "mpdecimate,normalize,scale=480:-1:flags=spline,split[s0][s1];[s0]palettegen=stats_mode=diff[p];[s1][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" -loop 0 $4 } diff --git a/preferences.zsh b/preferences.zsh index 6907e1e..0662c05 100644 --- a/preferences.zsh +++ b/preferences.zsh @@ -2,7 +2,7 @@ typeset -g HISTFILE=~/.histfile typeset -g HISTSIZE=1000 typeset -g SAVEHIST=1000 typeset -g ZLE_RPROMPT_INDENT=0 -setopt appendhistory autocd extendedglob nomatch notify hist_ignore_all_dups hist_ignore_space nobeep +setopt appendhistory autocd auto_pushd correct_all extendedglob nomatch notify hist_ignore_all_dups hist_ignore_space nobeep typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true #typeset -g POWERLEVEL9K_MODE='nerdfont-fontconfig'