updated antidote config somewhat
This commit is contained in:
parent
7e33d7c962
commit
ba8cf2c09f
27 changed files with 361 additions and 178 deletions
|
@ -1,32 +1,21 @@
|
||||||
# One Dark by Giuseppe Cesarano, https://github.com/GiuseppeCesarano
|
background #241200
|
||||||
# This work is licensed under the terms of the GPL-2.0 license.
|
foreground #ddc165
|
||||||
# For a copy, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.
|
cursor #e5591c
|
||||||
|
selection_background #e5591c
|
||||||
# Colors
|
color0 #000000
|
||||||
|
color8 #7e6954
|
||||||
foreground #979eab
|
color1 #d5252b
|
||||||
background #282c34
|
color9 #e4591b
|
||||||
|
color2 #909b00
|
||||||
color0 #282c34
|
color10 #bfc659
|
||||||
color1 #e06c75
|
color3 #bd8a13
|
||||||
color2 #98c379
|
color11 #ffca1b
|
||||||
color3 #e5c07b
|
color4 #4698a2
|
||||||
color4 #61afef
|
color12 #7cc9ce
|
||||||
color5 #be5046
|
color5 #8c4231
|
||||||
color6 #56b6c2
|
color13 #d16349
|
||||||
color7 #979eab
|
color6 #d98112
|
||||||
color8 #393e48
|
color14 #e6a96b
|
||||||
color9 #d19a66
|
color7 #ddc165
|
||||||
color10 #56b6c2
|
color15 #ffe9a3
|
||||||
color11 #e5c07b
|
selection_foreground #241200
|
||||||
color12 #61afef
|
|
||||||
color13 #be5046
|
|
||||||
color14 #56b6c2
|
|
||||||
color15 #abb2bf
|
|
||||||
|
|
||||||
# Tab Bar
|
|
||||||
|
|
||||||
active_tab_foreground #282c34
|
|
||||||
active_tab_background #979eab
|
|
||||||
inactive_tab_foreground #abb2bf
|
|
||||||
inactive_tab_background #282c34
|
|
||||||
|
|
|
@ -9,7 +9,5 @@ shell_integration enabled
|
||||||
# Fonts
|
# Fonts
|
||||||
font_family FiraCode Nerd Font
|
font_family FiraCode Nerd Font
|
||||||
|
|
||||||
# BEGIN_KITTY_THEME
|
# Penumbra Theme
|
||||||
# One Dark
|
include themes/embark.conf
|
||||||
include current-theme.conf
|
|
||||||
# END_KITTY_THEME
|
|
||||||
|
|
53
dot_config/kitty/themes/embark.conf
Normal file
53
dot_config/kitty/themes/embark.conf
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
background #1E1C31
|
||||||
|
foreground #CBE3E7
|
||||||
|
|
||||||
|
cursor #A1EFD3
|
||||||
|
|
||||||
|
selection_background #3E3859
|
||||||
|
selection_foreground #CBE3E7
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #1E1C31
|
||||||
|
color8 #585273
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #F48FB1
|
||||||
|
color9 #F02E6E
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #A1EFD3
|
||||||
|
color10 #7FE9C3
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #FFE6B3
|
||||||
|
color11 #F2B482
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #91DDFF
|
||||||
|
color12 #78A8FF
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #D4BFFF
|
||||||
|
color13 #7676FF
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #ABF8F7
|
||||||
|
color14 #63F2F1
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #CBE3E7
|
||||||
|
color15 #8A889D
|
||||||
|
|
||||||
|
active_border_color #A1EFD3
|
||||||
|
inactive_border_color #585273
|
||||||
|
bell_border_color #F56574
|
||||||
|
|
||||||
|
active_tab_foreground #2D2B40
|
||||||
|
active_tab_background #63F2F1
|
||||||
|
active_tab_font_style bold
|
||||||
|
|
||||||
|
inactive_tab_foreground #CBE3E7
|
||||||
|
inactive_tab_background #585273
|
||||||
|
inactive_tab_font_style normal
|
||||||
|
|
||||||
|
url_color #D4BFFF
|
91
dot_config/kitty/themes/penumbra.conf
Normal file
91
dot_config/kitty/themes/penumbra.conf
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Penumbra
|
||||||
|
### license: MIT License
|
||||||
|
## blurb: Kitty terminal port of the dark Penumbra color theme
|
||||||
|
## by Neal McKee. https://github.com/nealmckee/penumbra
|
||||||
|
## This theme uses the balanced 7 colors plus sun and shade
|
||||||
|
## as well as the the contrast++ for the 16 color palette
|
||||||
|
|
||||||
|
# Place this theme in your `~/.config/kitty/themes` directory
|
||||||
|
# and select it using `kitty +kitten themes` in the User menu
|
||||||
|
|
||||||
|
#: The basic colors
|
||||||
|
#:sky
|
||||||
|
foreground #8F8F8F
|
||||||
|
#:shade
|
||||||
|
background #303338
|
||||||
|
#:shade
|
||||||
|
selection_foreground #303338
|
||||||
|
#:sun
|
||||||
|
selection_background #FFF7ED
|
||||||
|
|
||||||
|
#: Cursor colors
|
||||||
|
#:sun
|
||||||
|
cursor #FFF7ED
|
||||||
|
#:shade
|
||||||
|
cursor_text_color #303338
|
||||||
|
|
||||||
|
#: URL underline color when hovering with mouse
|
||||||
|
#:blue
|
||||||
|
url_color #6E8DD5
|
||||||
|
|
||||||
|
#: The basic 16 colors
|
||||||
|
#: black
|
||||||
|
#: shade- balanced
|
||||||
|
color0 #24272B
|
||||||
|
#: shade- contrast++
|
||||||
|
color8 #0D0F13
|
||||||
|
|
||||||
|
#: red
|
||||||
|
#: red balanced
|
||||||
|
color1 #CA736C
|
||||||
|
#: red contrast++
|
||||||
|
color9 #F18AA1
|
||||||
|
|
||||||
|
#: green
|
||||||
|
#: green balanced
|
||||||
|
color2 #3EA57B
|
||||||
|
#: green contrast++
|
||||||
|
color10 #58C792
|
||||||
|
|
||||||
|
#: yellow
|
||||||
|
#: yellow balanced
|
||||||
|
color3 #92963A
|
||||||
|
#: yellow contrast++
|
||||||
|
color11 #B4B44A
|
||||||
|
|
||||||
|
#: blue
|
||||||
|
#: blue balanced
|
||||||
|
color4 #6E8DD5
|
||||||
|
#: blue contrast++
|
||||||
|
color12 #83ADFF
|
||||||
|
|
||||||
|
#: magenta (we replace with orange)
|
||||||
|
#: orange balanced
|
||||||
|
color5 #C27D40
|
||||||
|
#: orange contrast++
|
||||||
|
color13 #EA9856
|
||||||
|
|
||||||
|
#: cyan
|
||||||
|
#: cyan balanced
|
||||||
|
color6 #00A0BA
|
||||||
|
#: cyan contrast++
|
||||||
|
color14 #16C3DD
|
||||||
|
|
||||||
|
#: white
|
||||||
|
#: sun
|
||||||
|
color7 #FFF7ED
|
||||||
|
#: sun+
|
||||||
|
color15 #FFFDFB
|
||||||
|
|
||||||
|
# colors used by lsd
|
||||||
|
color187 #F2E6D4
|
||||||
|
color230 #FFF7ED
|
||||||
|
color245 #636363
|
||||||
|
color229 #8D9741
|
||||||
|
color216 #BA823A
|
||||||
|
color172 #CA736C
|
||||||
|
color40 #54C794
|
||||||
|
color42 #50B584
|
||||||
|
color36 #47A477
|
|
@ -1,32 +1,48 @@
|
||||||
shell = "zsh"
|
shell = "zsh"
|
||||||
|
|
||||||
[templates]
|
[templates]
|
||||||
defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}"
|
defer = """{% for file in files %} zsh-defer source "{{ file }}" {% endfor %}"""
|
||||||
defer-more = "{% for file in files %}zsh-defer -t 0.5 source \"{{ file }}\"\n{% endfor %}"
|
defer-more = """{% for file in files %} zsh-defer -t 0.5 source "{{ file }}" {% endfor %}"""
|
||||||
|
|
||||||
|
# own files
|
||||||
|
[plugins.localenv]
|
||||||
|
local = "~/.local/share/zsh/"
|
||||||
|
use = ["env.zsh"]
|
||||||
|
|
||||||
[plugins.zsh-defer]
|
[plugins.p10kconfig]
|
||||||
github = "romkatv/zsh-defer"
|
local = "~/.config/zsh/"
|
||||||
|
use = [".p10k.zsh"]
|
||||||
|
|
||||||
|
[plugins.compinit]
|
||||||
|
local = "~/.config/zsh/files/"
|
||||||
|
use = ["compinit.zsh"]
|
||||||
|
|
||||||
# completions
|
# completions
|
||||||
[plugins.zsh-completions]
|
[plugins.completions]
|
||||||
github = "zsh-users/zsh-completions"
|
github = "zsh-users/zsh-completions"
|
||||||
|
|
||||||
|
# lscolors
|
||||||
|
[plugins.lscolors]
|
||||||
|
github = "trapd00r/LS_COLORS"
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
[plugins.ohmyzsh-lib]
|
[plugins.zshdefer]
|
||||||
|
github = "romkatv/zsh-defer"
|
||||||
|
|
||||||
|
[plugins.omzlib]
|
||||||
github = "ohmyzsh/ohmyzsh"
|
github = "ohmyzsh/ohmyzsh"
|
||||||
dir = "lib"
|
dir = "lib"
|
||||||
use = ["{completion,key-bindings,history,directories}.zsh"]
|
use = ["{completion,key-bindings,history,directories}.zsh"]
|
||||||
|
|
||||||
[plugins.ohmyzsh-plugins]
|
[plugins.omzplugins]
|
||||||
github = "ohmyzsh/ohmyzsh"
|
github = "ohmyzsh/ohmyzsh"
|
||||||
dir = "plugins"
|
dir = "plugins"
|
||||||
use = ["{systemd,fzf,command-not-found}/*.plugin.zsh"]
|
use = ["{systemd,fzf,command-not-found,transfer}/*.plugin.zsh"]
|
||||||
|
|
||||||
[plugins.fzf-tab]
|
[plugins.fzftab]
|
||||||
github = "Aloxaf/fzf-tab"
|
github = "Aloxaf/fzf-tab"
|
||||||
|
|
||||||
[plugins.fzf-marks]
|
[plugins.fzfmarks]
|
||||||
github = "urbainvaes/fzf-marks"
|
github = "urbainvaes/fzf-marks"
|
||||||
|
|
||||||
[plugins.evalcache]
|
[plugins.evalcache]
|
||||||
|
@ -35,42 +51,66 @@ github = "mroth/evalcache"
|
||||||
[plugins.colorize]
|
[plugins.colorize]
|
||||||
github = "zpm-zsh/colorize"
|
github = "zpm-zsh/colorize"
|
||||||
|
|
||||||
[plugins.ssh]
|
[plugins.wakatime]
|
||||||
github = "zpm-zsh/ssh"
|
|
||||||
|
|
||||||
[plugins.wakatime-zsh-plugin]
|
|
||||||
github = "sobolevn/wakatime-zsh-plugin"
|
github = "sobolevn/wakatime-zsh-plugin"
|
||||||
|
|
||||||
[plugins.zsh-titles]
|
[plugins.titles]
|
||||||
github = "amyreese/zsh-titles"
|
github = "amyreese/zsh-titles"
|
||||||
|
|
||||||
[plugins.zsh-thefuck]
|
[plugins.thefuck]
|
||||||
github = "laggardkernel/zsh-thefuck"
|
github = "laggardkernel/zsh-thefuck"
|
||||||
|
|
||||||
[plugins.oath]
|
[plugins.oath]
|
||||||
github = "alexdesousa/oath"
|
github = "alexdesousa/oath"
|
||||||
|
|
||||||
[plugins.zsh-exa]
|
[plugins.exa]
|
||||||
github = "TwoPizza9621536/zsh-exa"
|
github = "TwoPizza9621536/zsh-exa"
|
||||||
|
|
||||||
[plugins.zsh-bat]
|
[plugins.bat]
|
||||||
github = "fdellwing/zsh-bat"
|
github = "fdellwing/zsh-bat"
|
||||||
|
|
||||||
[plugins.zsh-you-should-use]
|
[plugins.youshoulduse]
|
||||||
github = "MichaelAquilina/zsh-you-should-use"
|
github = "MichaelAquilina/zsh-you-should-use"
|
||||||
|
|
||||||
[plugins.zsh-autosuggestions]
|
[plugins.autosuggestions]
|
||||||
github = "zsh-users/zsh-autosuggestions"
|
github = "zsh-users/zsh-autosuggestions"
|
||||||
use = ["{{ name }}.zsh"]
|
|
||||||
|
|
||||||
[plugins.zsh-syntax-highlighting]
|
[plugins.emoji-cli]
|
||||||
|
github = "b4b4r07/emoji-cli"
|
||||||
|
|
||||||
|
#[plugins.autocomplete]
|
||||||
|
#github = "marlonrichert/zsh-autocomplete"
|
||||||
|
|
||||||
|
[plugins.syntaxhighlighting]
|
||||||
github = "zsh-users/zsh-syntax-highlighting"
|
github = "zsh-users/zsh-syntax-highlighting"
|
||||||
|
|
||||||
# theme
|
[plugins.asdf]
|
||||||
[plugins.powerlevel10k]
|
github = "asdf-vm/asdf"
|
||||||
github = "romkatv/powerlevel10k"
|
|
||||||
|
|
||||||
# own files
|
[plugins.hoco]
|
||||||
[plugins.own-files]
|
github = "Felixoid/zsh-hoco"
|
||||||
local = "~/.config/zsh/"
|
|
||||||
use = ["{aliases,keybinds,distroicon,transfer}.zsh"]
|
[plugins.abbr]
|
||||||
|
github = "olets/zsh-abbr"
|
||||||
|
use = ["zsh-abbr.zsh"]
|
||||||
|
|
||||||
|
[plugins.sshcomp]
|
||||||
|
local = "~/.config/zsh/files/"
|
||||||
|
use = ["sshcomp.zsh"]
|
||||||
|
|
||||||
|
# themes
|
||||||
|
#[plugins.powerlevel10k]
|
||||||
|
#github = "romkatv/powerlevel10k"
|
||||||
|
|
||||||
|
# evals
|
||||||
|
[plugins.evalstuff]
|
||||||
|
local = "~/.config/zsh/files/"
|
||||||
|
use = ["evalstuff.zsh"]
|
||||||
|
|
||||||
|
[plugins.ownfiles]
|
||||||
|
local = "~/.config/zsh/files/"
|
||||||
|
use = ["{aliases,functions,distroicon}.zsh"]
|
||||||
|
|
||||||
|
[plugins.bashcomps]
|
||||||
|
local = "~/.config/zsh/files/"
|
||||||
|
use = ["bashcomps.zsh"]
|
||||||
|
|
8
dot_config/zsh-abbr/private_user-abbreviations
Normal file
8
dot_config/zsh-abbr/private_user-abbreviations
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
abbr -g "g"="git"
|
||||||
|
abbr -g "git m"="git checkout main"
|
||||||
|
abbr -g "git rei"="git rebase -i"
|
||||||
|
abbr -g "git reim"="git rebase -i main"
|
||||||
|
abbr -g "git ri"="git rebase -i"
|
||||||
|
abbr "m"="git checkout main"
|
||||||
|
abbr "rei"="git rebase -i"
|
||||||
|
abbr "reim"="git rebase -i main"
|
1
dot_config/zsh/dot_zprofile
Normal file
1
dot_config/zsh/dot_zprofile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# create the file
|
|
@ -6,6 +6,7 @@ ohmyzsh/ohmyzsh path:lib/key-bindings.zsh
|
||||||
ohmyzsh/ohmyzsh path:plugins/systemd
|
ohmyzsh/ohmyzsh path:plugins/systemd
|
||||||
ohmyzsh/ohmyzsh path:plugins/fzf
|
ohmyzsh/ohmyzsh path:plugins/fzf
|
||||||
ohmyzsh/ohmyzsh path:plugins/command-not-found
|
ohmyzsh/ohmyzsh path:plugins/command-not-found
|
||||||
|
ohmyzsh/ohmyzsh path:plugins/transfer
|
||||||
|
|
||||||
# other plugins
|
# other plugins
|
||||||
Aloxaf/fzf-tab
|
Aloxaf/fzf-tab
|
||||||
|
@ -20,10 +21,17 @@ MichaelAquilina/zsh-you-should-use
|
||||||
alexdesousa/oath
|
alexdesousa/oath
|
||||||
TwoPizza9621536/zsh-exa
|
TwoPizza9621536/zsh-exa
|
||||||
fdellwing/zsh-bat
|
fdellwing/zsh-bat
|
||||||
|
asdf-vm/asdf
|
||||||
|
Felixoid/zsh-hoco
|
||||||
|
olets/zsh-abbr
|
||||||
|
trapd00r/LS_COLORS
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
romkatv/powerlevel10k
|
romkatv/powerlevel10k
|
||||||
|
|
||||||
|
# stuff
|
||||||
|
zsh-users/zsh-completions
|
||||||
|
|
||||||
# fish like
|
# fish like
|
||||||
zsh-users/zsh-autosuggestions
|
zsh-users/zsh-autosuggestions
|
||||||
zsh-users/zsh-syntax-highlighting
|
zsh-users/zsh-syntax-highlighting
|
|
@ -1,16 +1,13 @@
|
||||||
# path
|
# path
|
||||||
export PATH="$HOME"/.local/bin:"$PATH"
|
export PATH="$HOME"/.local/bin:"$PATH"
|
||||||
|
|
||||||
# ibus specific
|
|
||||||
export GTK_IM_MODULE=ibus
|
|
||||||
export QT_IM_MODULE=ibus
|
|
||||||
export XMODIFIERS=@im=ibus
|
|
||||||
|
|
||||||
# xdg stuff
|
# xdg stuff
|
||||||
export XDG_DATA_HOME="$HOME"/.local/share
|
|
||||||
export XDG_CONFIG_HOME="$HOME"/.config
|
|
||||||
export XDG_STATE_HOME="$HOME"/.local/state
|
|
||||||
export XDG_CACHE_HOME="$HOME"/.cache
|
export XDG_CACHE_HOME="$HOME"/.cache
|
||||||
|
export XDG_CONFIG_HOME="$HOME"/.config
|
||||||
|
export XDG_CONFIG_DIRS=/etc/xdg
|
||||||
|
export XDG_DATA_HOME="$HOME"/.local/share
|
||||||
|
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
||||||
|
export XDG_STATE_HOME="$HOME"/.local/state
|
||||||
export XDG_DESKTOP_DIR=$HOME/Desktop
|
export XDG_DESKTOP_DIR=$HOME/Desktop
|
||||||
export XDG_DOCUMENTS_DIR="$HOME"/Documents
|
export XDG_DOCUMENTS_DIR="$HOME"/Documents
|
||||||
export XDG_DOWNLOAD_DIR="$HOME"/Downloads
|
export XDG_DOWNLOAD_DIR="$HOME"/Downloads
|
||||||
|
@ -19,10 +16,6 @@ export XDG_PICTURES_DIR="$HOME"/Pictures
|
||||||
export XDG_VIDEOS_DIR="$HOME"/Videos
|
export XDG_VIDEOS_DIR="$HOME"/Videos
|
||||||
export XDG_PROJECTS_DIR="$XDG_DOCUMENTS_DIR"/projects
|
export XDG_PROJECTS_DIR="$XDG_DOCUMENTS_DIR"/projects
|
||||||
|
|
||||||
# system xdg stuff
|
|
||||||
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
|
||||||
export XDG_CONFIG_DIRS=/etc/xdg
|
|
||||||
|
|
||||||
# cache files
|
# cache files
|
||||||
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
||||||
export ZSH_EVALCACHE_DIR="$XDG_CACHE_HOME"/evalcache
|
export ZSH_EVALCACHE_DIR="$XDG_CACHE_HOME"/evalcache
|
||||||
|
@ -43,23 +36,27 @@ export ASDF_DATA_DIR="$XDG_DATA_HOME"/asdf
|
||||||
export NB_DIR="$XDG_DATA_HOME"/nb
|
export NB_DIR="$XDG_DATA_HOME"/nb
|
||||||
export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask
|
export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask
|
||||||
export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime
|
export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime
|
||||||
|
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
||||||
# gpg
|
|
||||||
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||||
export GPG_TTY="$TTY"
|
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
||||||
|
export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates
|
||||||
|
|
||||||
# other programs
|
# other programs
|
||||||
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
||||||
export EDITOR=nvim
|
export EDITOR=vim
|
||||||
export VISUAL="subl -w"
|
#export VISUAL=kate
|
||||||
export ZSH_WAKATIME_BIN=/usr/bin/wakatime
|
export ZSH_WAKATIME_BIN=/usr/bin/wakatime
|
||||||
|
export PYTHONSTARTUP=/etc/python/pythonrc
|
||||||
|
|
||||||
# stuff
|
# stuff
|
||||||
export ZELLIJ_AUTO_ATTACH=true
|
export ZELLIJ_AUTO_ATTACH=true
|
||||||
export ZELLIJ_AUTO_EXIT=true
|
export ZELLIJ_AUTO_EXIT=true
|
||||||
export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep -i terminal: | awk '{print $2}')
|
export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep Terminal: | awk '{print $2}')
|
||||||
|
|
||||||
# zsh specific
|
# zsh specific
|
||||||
export HISTSIZE=1048576
|
export SAVEHIST=$(( 100 * 1000 ))
|
||||||
export SAVEHIST=1048576
|
export HISTSIZE=$(( 1.2 * SAVEHIST ))
|
||||||
export HISTFILE="$XDG_CACHE_HOME"/zsh/history
|
export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh
|
||||||
|
export HISTFILE="$ZSH_CACHE_DIR"/history
|
||||||
|
export GPG_TTY="$TTY"
|
||||||
|
export AUTO_NTFY_DONE_IGNORE="ntfy emacs htop info less mail man meld most mutt nano screen ssh tail tmux top vi vim watch bat cat kate topgrade"
|
31
dot_config/zsh/dot_zshrc
Normal file
31
dot_config/zsh/dot_zshrc
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox
|
||||||
|
if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty
|
||||||
|
|
||||||
|
# startup banner
|
||||||
|
potentialBanner=('bofh; echo " - BOFH"' 'hackerquotes' 'fastfetch')#'colorscript random')
|
||||||
|
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
||||||
|
|
||||||
|
function source () { test -r $1 && builtin source $1 }
|
||||||
|
|
||||||
|
# local env exports
|
||||||
|
source "$XDG_DATA_HOME"/zsh/env.zsh
|
||||||
|
|
||||||
|
# completion stuff
|
||||||
|
source "$ZDOTDIR"/files/compinit.zsh
|
||||||
|
source "$ZDOTDIR"/files/bashcomps.zsh
|
||||||
|
|
||||||
|
# antidote
|
||||||
|
source "$XDG_DATA_HOME"/antidote/antidote.zsh
|
||||||
|
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
||||||
|
antidote load
|
||||||
|
|
||||||
|
# eval stuff
|
||||||
|
source "$ZDOTDIR"/files/evalstuff.zsh
|
||||||
|
|
||||||
|
# seperate configs
|
||||||
|
source "$ZDOTDIR"/files/aliases.zsh
|
||||||
|
source "$ZDOTDIR"/files/functions.zsh
|
||||||
|
source "$ZDOTDIR"/files/distroicon.zsh
|
||||||
|
|
||||||
|
# ssh ignored patterns
|
||||||
|
source "$ZDOTDIR"/files/sshcomp.zsh
|
|
@ -1,4 +1,3 @@
|
||||||
alias cd='z'
|
|
||||||
alias grep='rg'
|
alias grep='rg'
|
||||||
alias find='fd'
|
alias find='fd'
|
||||||
|
|
11
dot_config/zsh/files/bashcomps.zsh
Normal file
11
dot_config/zsh/files/bashcomps.zsh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
if (( ${+commands[distrobox]} )); then
|
||||||
|
source /usr/share/bash-completion/completions/distrobox
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-create
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-enter
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-ephemeral
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-generate-entry
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-list
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-rm
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-stop
|
||||||
|
source /usr/share/bash-completion/completions/distrobox-upgrade
|
||||||
|
fi
|
4
dot_config/zsh/files/compinit.zsh
Normal file
4
dot_config/zsh/files/compinit.zsh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -d "$XDG_CACHE_HOME"/zsh/compdump
|
14
dot_config/zsh/files/evalstuff.zsh
Normal file
14
dot_config/zsh/files/evalstuff.zsh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# starship
|
||||||
|
#_evalcache starship init zsh --print-full-init
|
||||||
|
|
||||||
|
# ohmyposh
|
||||||
|
#potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json')
|
||||||
|
#export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
||||||
|
#eval "$(ohmyposh init zsh)"
|
||||||
|
|
||||||
|
# evalstuff
|
||||||
|
_evalcache zoxide init --cmd cd zsh
|
||||||
|
_evalcache atuin init zsh
|
||||||
|
#_evalcache navi widget zsh
|
||||||
|
#_evalcache direnv hook zsh
|
||||||
|
#eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
|
15
dot_config/zsh/files/functions.zsh
Normal file
15
dot_config/zsh/files/functions.zsh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
pet_select () {
|
||||||
|
BUFFER=$(pet search --query "$LBUFFER")
|
||||||
|
CURSOR=$#BUFFER
|
||||||
|
zle redisplay
|
||||||
|
}
|
||||||
|
zle -N pet_select
|
||||||
|
bindkey '^l' pet_select
|
||||||
|
|
||||||
|
run_ranger () {
|
||||||
|
echo
|
||||||
|
ranger < $TTY
|
||||||
|
zle redisplay
|
||||||
|
}
|
||||||
|
zle -N run_ranger
|
||||||
|
bindkey '^f' run_ranger
|
12
dot_config/zsh/files/sshcomp.zsh
Normal file
12
dot_config/zsh/files/sshcomp.zsh
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' sort false
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' group-name ''
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' verbose yes
|
||||||
|
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
|
||||||
|
zstyle ':completion:*:(scp|sshfs|rsync):*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr
|
||||||
|
zstyle ':completion:*:(ssh|mosh):*' group-order users hosts-domain hosts-host users hosts-ipaddr
|
||||||
|
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:users' ignored-patterns '*'
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback localhost broadcasthost 'ip6-*' 'hbz*'
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*.eeleater.org' '*.hbz-nrw.de'
|
||||||
|
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*'
|
|
@ -1,7 +0,0 @@
|
||||||
run_ranger () { echo; ranger < $TTY; zle redisplay }
|
|
||||||
zle -N run_ranger
|
|
||||||
bindkey '^f' run_ranger
|
|
||||||
|
|
||||||
pet_select () { BUFFER=$(pet search --query "$LBUFFER"); CURSOR=$#BUFFER; zle redisplay }
|
|
||||||
zle -N pet_select
|
|
||||||
bindkey '^l' pet_select
|
|
|
@ -1,50 +0,0 @@
|
||||||
if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox
|
|
||||||
if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart only in alacritty
|
|
||||||
|
|
||||||
#fastfetch
|
|
||||||
bofh; echo " - BOFH"
|
|
||||||
#hackerquotes
|
|
||||||
#colorscript random
|
|
||||||
|
|
||||||
try_source () { test -r $1 && source $1 }
|
|
||||||
|
|
||||||
# local env exports
|
|
||||||
try_source "$XDG_DATA_HOME"/zsh/env.zsh
|
|
||||||
|
|
||||||
# Powerlevel10k - instant prompt and config
|
|
||||||
try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh
|
|
||||||
try_source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure
|
|
||||||
|
|
||||||
# ensure zsh cache folder exists
|
|
||||||
mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null
|
|
||||||
|
|
||||||
# compinit
|
|
||||||
autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump
|
|
||||||
|
|
||||||
# antidote
|
|
||||||
try_source /usr/share/zsh-antidote/antidote.zsh
|
|
||||||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
|
||||||
antidote load
|
|
||||||
|
|
||||||
# other themes
|
|
||||||
#_evalcache starship init zsh
|
|
||||||
#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json
|
|
||||||
|
|
||||||
# eval stuff
|
|
||||||
_evalcache zoxide init zsh
|
|
||||||
_evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS
|
|
||||||
_evalcache atuin init zsh
|
|
||||||
_evalcache navi widget zsh
|
|
||||||
_evalcache direnv hook zsh
|
|
||||||
try_source /opt/asdf-vm/asdf.sh
|
|
||||||
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
|
|
||||||
|
|
||||||
# seperate configs
|
|
||||||
try_source "$ZDOTDIR"/aliases.zsh
|
|
||||||
try_source "$ZDOTDIR"/keybinds.zsh
|
|
||||||
try_source "$ZDOTDIR"/distroicon.zsh
|
|
||||||
try_source "$ZDOTDIR"/transfer.zsh
|
|
||||||
|
|
||||||
# ssh ignored patterns
|
|
||||||
zstyle ':completion:*:*:*:users' ignored-patterns '*'
|
|
||||||
zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de'
|
|
|
@ -1 +0,0 @@
|
||||||
zprofile.zsh
|
|
|
@ -1 +0,0 @@
|
||||||
zsh_plugins.txt
|
|
|
@ -1 +0,0 @@
|
||||||
env.zsh
|
|
|
@ -1 +0,0 @@
|
||||||
rc.zsh
|
|
|
@ -1,26 +0,0 @@
|
||||||
transfer(){
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if tty -s; then
|
|
||||||
file="$1"
|
|
||||||
file_name=$(basename "$file")
|
|
||||||
|
|
||||||
if [ ! -e "$file" ]; then
|
|
||||||
echo "$file: No such file or directory">&2
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$file" ]; then
|
|
||||||
file_name="$file_name.zip"
|
|
||||||
(cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
|
|
||||||
else
|
|
||||||
cat "$file" | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
file_name=$1
|
|
||||||
curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
excuses_file="$HOME/.local/share/zsh/bofh"
|
excuses_file="$HOME/.local/share/zsh/bofh"
|
||||||
num_lines=$(nl $excuses_file | tail -n 1 | awk '{print $1}')
|
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
|
||||||
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' $excuses_file
|
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
# Just print a hacker quote randomly when open a terminal.
|
# Just print a hacker quote randomly when open a terminal.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue