summaryrefslogtreecommitdiff
path: root/dot_zsh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_zsh/functions/twitch6
-rw-r--r--dot_zsh/plugins/bat4
-rw-r--r--dot_zsh/plugins/bsdtar4
-rw-r--r--dot_zsh/plugins/colordiff4
-rw-r--r--dot_zsh/plugins/exa11
-rw-r--r--dot_zsh/plugins/fuzzy25
-rw-r--r--dot_zsh/plugins/gnome-keyring-daemon5
-rw-r--r--dot_zsh/plugins/import-systemd-env15
-rw-r--r--dot_zsh/plugins/jump4
-rw-r--r--dot_zsh/source/00-path.zsh25
-rw-r--r--dot_zsh/source/alias.zsh11
-rw-r--r--dot_zsh/source/env.zsh11
12 files changed, 0 insertions, 125 deletions
diff --git a/dot_zsh/functions/twitch b/dot_zsh/functions/twitch
deleted file mode 100644
index 8b852f4..0000000
--- a/dot_zsh/functions/twitch
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/zsh
-[[ $# -gt 0 ]] || return
-(( $+commands[streamlink] )) || return
-zstyle -s :function:twitch ${1:l} stream || stream=${1:l}
-shift
-streamlink twitch.tv/$stream "$@"
diff --git a/dot_zsh/plugins/bat b/dot_zsh/plugins/bat
deleted file mode 100644
index 6127999..0000000
--- a/dot_zsh/plugins/bat
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-(( $+commands[bat] )) || return
-
-alias cat=bat c='bat -pp'
diff --git a/dot_zsh/plugins/bsdtar b/dot_zsh/plugins/bsdtar
deleted file mode 100644
index fbc9ccb..0000000
--- a/dot_zsh/plugins/bsdtar
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-(( $+commands[bsdtar] )) || return
-
-alias tar=bsdtar bshar='bsdtar --format=shardump' shar='bsdtar --format=shar'
diff --git a/dot_zsh/plugins/colordiff b/dot_zsh/plugins/colordiff
deleted file mode 100644
index 729d2cf..0000000
--- a/dot_zsh/plugins/colordiff
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-(( $+commands[colordiff] )) || return
-
-alias diff=colordiff dif='colordiff -u'
diff --git a/dot_zsh/plugins/exa b/dot_zsh/plugins/exa
deleted file mode 100644
index afdee79..0000000
--- a/dot_zsh/plugins/exa
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/zsh
-(( $+commands[exa] )) || return
-
-# removes default ls-likes, replaces them with exa variants
-unalias ls ll l la
-
-# old ones
-alias ls=exa ll='ls -l' l=ll la='l -a'
-# extras
-alias lr='l -T'
-alias lp='lr --git-ignore'
diff --git a/dot_zsh/plugins/fuzzy b/dot_zsh/plugins/fuzzy
deleted file mode 100644
index 22ee30d..0000000
--- a/dot_zsh/plugins/fuzzy
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/zsh
-(( $+commands[fd] )) || return # find(1) sucks, not worth without fd
-
-# if it's not set yet, set it
-[[ -z $fuzzy_command ]] && (( $+commands[fzf] )) && fuzzy_command=fzf
-[[ -z $fuzzy_command ]] && (( $+commands[sk] )) && fuzzy_command=sk
-
-local FUZZY_DEFAULT='fd -t f'
-local FUZZY_ALT_C='fd -t d'
-local FUZZY_CTRL_T="$FUZZY_DEFAULT"
-
-case $fuzzy_command in
- fzf)
- export FZF_DEFAULT_COMMAND="$FUZZY_DEFAULT"
- export FZF_ALT_C_COMMAND="$FUZZY_ALT_C"
- export FZF_CTRL_T_COMMAND="$FUZZY_CTRL_T"
- . /usr/share/fzf/**/*.zsh
- ;;
- sk)
- export SKIM_DEFAULT_COMMAND="$FUZZY_DEFAULT"
- export SKIM_ALT_C_COMMAND="$FUZZY_ALT_C"
- export SKIM_CTRL_T_COMMAND="$FUZZY_CTRL_T"
- . /usr/share/skim/**/*.zsh
- ;;
-esac
diff --git a/dot_zsh/plugins/gnome-keyring-daemon b/dot_zsh/plugins/gnome-keyring-daemon
deleted file mode 100644
index e9c35c2..0000000
--- a/dot_zsh/plugins/gnome-keyring-daemon
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/zsh
-(( $+commands[gnome-keyring-daemon] )) || return
-if [[ -z $SSH_AUTH_SOCK ]]; then
- export $(gnome-keyring-daemon -s)
-fi
diff --git a/dot_zsh/plugins/import-systemd-env b/dot_zsh/plugins/import-systemd-env
deleted file mode 100644
index e30d8cd..0000000
--- a/dot_zsh/plugins/import-systemd-env
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/zsh
-# only applies to systemd
-p1=$(ps -p 1 -o comm=)
-[[ "$p1" = "systemd" ]] || return
-
-# we *import* expected systemd user env from environment.d
-# I might later make a standalone utility just for that (environment.d on non-systemd systems)
-
-# warning: root access will mean being able to inject arbitrary code into your shell
-# by way of replacing that executable
-# this is why we test for systemd as pid1 (right now) rather than the presence of the binary
-while read -r l; do
- eval export $l
-
-done < <(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
diff --git a/dot_zsh/plugins/jump b/dot_zsh/plugins/jump
deleted file mode 100644
index b64f1df..0000000
--- a/dot_zsh/plugins/jump
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-(( $+commands[jump] )) || return
-
-eval "$(jump shell zsh)"
diff --git a/dot_zsh/source/00-path.zsh b/dot_zsh/source/00-path.zsh
deleted file mode 100644
index 11084a3..0000000
--- a/dot_zsh/source/00-path.zsh
+++ /dev/null
@@ -1,25 +0,0 @@
-if (( $+commands[luarocks] )); then
- PATH="$PATH:$(luarocks path --lr-bin)" # luarocks puts :s in the output
- eval $(luarocks path --no-bin)
-fi
-if (( $+commands[opam] )); then
- eval $(opam env)
-fi
-if (( $+commands[yarn] )) && [[ ! -f ~/.yarnrc ]]; then
- yarn config set global-folder ~/.local/yarn/global
- yarn config set prefix ~/.local/yarn
-fi
-
-# high priority
-path=( ~/bin $path )
-
-# low priority
-path+=(
- ~/Applications
- ~/.local/cargo/bin
- ~/.local/go/bin
- ~/.local/yarn/bin
- ~/.local/pipx/bin
- ~/.gem/ruby/*/bin(N)
- ~/.local/box
-)
diff --git a/dot_zsh/source/alias.zsh b/dot_zsh/source/alias.zsh
deleted file mode 100644
index e9c63bc..0000000
--- a/dot_zsh/source/alias.zsh
+++ /dev/null
@@ -1,11 +0,0 @@
-alias cp='cp --reflink=auto'
-alias dit='docker run --rm -it' drun='dit -v "$PWD":/pwd:Z -w /pwd'
-alias h='ht -Fb' ht='ht -F'
-alias g=genius
-alias m=micro
-alias ossh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR'
-alias tar=bsdtar
-alias vim=nvim
-alias yaegi='rlwrap yaegi'
-
-alias bshar='bsdtar --format=shardump' shar='bsdtar --format=shar'
diff --git a/dot_zsh/source/env.zsh b/dot_zsh/source/env.zsh
deleted file mode 100644
index 2a4ef78..0000000
--- a/dot_zsh/source/env.zsh
+++ /dev/null
@@ -1,11 +0,0 @@
-export EDITOR==micro
-export GIT_EDITOR==micro
-export LESS='-R --mouse --wheel-lines=2'
-export SYSTEMD_LESS="$LESS"
-export PAGER='less'
-
-if [[ -z $TERMINFO_DIRS ]]; then
- autoload -Uz autosource
- # maybe others later!
- autosource import-systemd-env
-fi