diff options
Diffstat (limited to 'zsh/zscripts')
-rwxr-xr-x | zsh/zscripts/aliasrc.G3N2.zsh | 6 | ||||
-rwxr-xr-x | zsh/zscripts/aliasrc.librex60.zsh | 7 | ||||
-rwxr-xr-x | zsh/zscripts/aliasrc.voidx250.zsh | 8 | ||||
-rwxr-xr-x | zsh/zscripts/aliasrc.zsh | 11 | ||||
-rwxr-xr-x | zsh/zscripts/colors.G3N2.zsh | 7 | ||||
-rwxr-xr-x | zsh/zscripts/keybindrc.zsh | 34 | ||||
-rwxr-xr-x | zsh/zscripts/lfub.zsh | 6 |
7 files changed, 28 insertions, 51 deletions
diff --git a/zsh/zscripts/aliasrc.G3N2.zsh b/zsh/zscripts/aliasrc.G3N2.zsh deleted file mode 100755 index 8e8d2a5..0000000 --- a/zsh/zscripts/aliasrc.G3N2.zsh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# Package Management -alias \ - e="sudo emerge" \ - diff --git a/zsh/zscripts/aliasrc.librex60.zsh b/zsh/zscripts/aliasrc.librex60.zsh deleted file mode 100755 index 87f7e08..0000000 --- a/zsh/zscripts/aliasrc.librex60.zsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Package Management -alias \ - p="sudo pacman" \ - pq="sudo pacman -Ss" \ - diff --git a/zsh/zscripts/aliasrc.voidx250.zsh b/zsh/zscripts/aliasrc.voidx250.zsh deleted file mode 100755 index 4681ace..0000000 --- a/zsh/zscripts/aliasrc.voidx250.zsh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# Replacement programs -alias \ - xi="sudo xbps-install" \ - xq="xbps-query -R --search" \ - xr="sudo xbps-remove" \ - diff --git a/zsh/zscripts/aliasrc.zsh b/zsh/zscripts/aliasrc.zsh index f9822b7..cd77a71 100755 --- a/zsh/zscripts/aliasrc.zsh +++ b/zsh/zscripts/aliasrc.zsh @@ -11,7 +11,7 @@ alias \ open="xdg-open" \ smci="sudo make clean install" \ smi="sudo make install" \ - su="sudo su" \ + su="sudo su -l" \ # Quick navigate to directories / open specific files alias \ @@ -32,28 +32,29 @@ alias \ # Colorize command output alias \ + bat="bat --theme='Monokai Extended'" \ diff="diff --color=auto" \ exa="exa --icons -a --group-directories-first" \ grep="grep --color=auto -I --ignore-case --line-number" \ + ip="ip --color=auto" \ ls="ls -vAhN --color=auto --group-directories-first" \ - bat="bat --theme=Monokai\ Extended" \ # (Non)-Verbosity alias \ - br="br -h" \ cp="cp -iv" \ + dd="sudo dd status=progress bs=4M" ffmpeg="ffmpeg -hide_banner" \ ffprobe="ffprobe -hide_banner" \ mkd="mkdir -p" \ mv="mv -iv" \ rm="rm -v" \ -# Default formatting +# Miscellaneous alias \ yt-dlp="yt-dlp -o '%(uploader)s - %(title)s.%(ext)s'" \ # Clean home directory alias \ - startdwm="\startx $XDG_CONFIG_HOME/x11/xinitdwmrc" \ + startdwm="startx $XDG_CONFIG_HOME/x11/xinitdwmrc" \ startx="startx $XINITRC" \ diff --git a/zsh/zscripts/colors.G3N2.zsh b/zsh/zscripts/colors.G3N2.zsh deleted file mode 100755 index f6c1a90..0000000 --- a/zsh/zscripts/colors.G3N2.zsh +++ /dev/null @@ -1,7 +0,0 @@ -if [ -n "$DISPLAY" ]; then - declare col{br,at}=57 - declare col{name,host}=13 - coldir=129 -else - declare col{br,name,at,host,dir}=magenta -fi diff --git a/zsh/zscripts/keybindrc.zsh b/zsh/zscripts/keybindrc.zsh index 90c1e16..29913ae 100755 --- a/zsh/zscripts/keybindrc.zsh +++ b/zsh/zscripts/keybindrc.zsh @@ -8,20 +8,24 @@ export KEYTIMEOUT=1 #bindkey -r "^U" "^W" "^G" "^J" "^Q" "^R" "^[[200~" # Keybindings -#autoload edit-command-line; zle -N edit-command-line # Edit line in Vim buffer -#bindkey "^E" edit-command-line # Ctrl-e - edit line in Vim buffer -bindkey "^[[H" beginning-of-line # Home Key -bindkey "^[[4~" end-of-line # End Key -bindkey "^[[P" delete-char # Delete Key -bindkey "^[[4h" overwrite-mode # Insert Key -bindkey "^D" kill-whole-line # Ctrl-d - delete line -bindkey "^X" clear-screen # Ctrl-x - clear screen -bindkey "^H" backward-delete-word # Ctrl-Backspace - delete entire word behind cursor -bindkey "^[[M" delete-word # Ctrl-Delete - delete currect word in front of the cursor -bindkey "^[[1;5D" emacs-backward-word # Ctrl-Right - go back one word -bindkey "^[[1;3D" emacs-backward-word # Alt-Right - go back one word -bindkey "^[[1;5C" emacs-forward-word # Ctrl-Left - go forward one word -bindkey "^[[1;3C" emacs-forward-word # Alt-Left - go forward one word +autoload edit-command-line; zle -N edit-command-line # Edit line in Vim buffer +bindkey '^E' edit-command-line # Ctrl-e - edit line in Vim buffer +bindkey '^[[H' beginning-of-line # Home Key +bindkey '^[[4~' end-of-line # End Key +bindkey '^[[P' delete-char # Delete Key +bindkey '^[[4h' overwrite-mode # Insert Key +bindkey '^D' kill-whole-line # Ctrl-d - delete line +bindkey '^X' clear-screen # Ctrl-x - clear screen +bindkey '^H' backward-delete-word # Ctrl-Backspace - delete entire word behind cursor +bindkey '^[[M' delete-word # Ctrl-Delete - delete currect word in front of the cursor +# History completion +bindkey '\e[A' history-search-backward # Up arrow - seach history backwards +bindkey '\e[B' history-search-forward # Down arrow - seach history forwards +# Ctrl-vi keys emulate arrow keys +bindkey '^H' emacs-backward-word # Ctrl-L - go back one word +bindkey '^J' history-search-forward # Ctrl-J - seach history backwards +bindkey '^K' history-search-backward # Ctrl-K - seach history forwards +bindkey '^L' emacs-forward-word # Ctrl-H - go forward one word # Basic auto/tab complete autoload -U compinit @@ -30,7 +34,7 @@ zmodload zsh/complist compinit -d "$XDG_CACHE_HOME/zcompdump" # Change where .zcompdump is stored _comp_options+=(globdots) # Include hidden files. -# Use ctrl+vi keys in tab complete menu +# Use ctrl-vi keys in tab complete menu bindkey -M menuselect '^h' vi-backward-char bindkey -M menuselect '^k' vi-up-line-or-history bindkey -M menuselect '^l' vi-forward-char diff --git a/zsh/zscripts/lfub.zsh b/zsh/zscripts/lfub.zsh index 309a0dc..83b00c1 100755 --- a/zsh/zscripts/lfub.zsh +++ b/zsh/zscripts/lfub.zsh @@ -9,14 +9,14 @@ cleanuplf() { } lfub() { - dircache=/tmp/lflastdir + dircache=/tmp/$USER-lflastdir lfopt="--last-dir-path=$dircache" if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then lf "$lfopt" "$@" else export FIFO_UEBERZUG="/tmp/ueberzug-$$" mkfifo "$FIFO_UEBERZUG" - (ueberzug layer -s <"$FIFO_UEBERZUG" -p json &) >/dev/null 2>&1 + ueberzug layer -s <"$FIFO_UEBERZUG" -p json & exec 3>"$FIFO_UEBERZUG" trap cleanuplf HUP INT QUIT TERM PWR EXIT lf "$lfopt" "$@" 3>&- @@ -24,4 +24,4 @@ lfub() { [ -f "$dircache" ] && dir="$(cat "$dircache")" && [ -d "$dir" ] && cd "$dir" } -alias "lf=lfub" +alias lf="lfub" |