aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2021-06-12 23:35:05 +0800
committerPeter Son Struschka <me@peter-struschka.com>2021-06-12 23:35:05 +0800
commit4d63577b487a8bf877401312f22142094e2d4584 (patch)
treea35596a5ccda6537b05da0a04a775a85bdc25b06
parenta99b14adcece0b4f42849b5ba229a49d1b17c50d (diff)
downloaddotfiles-4d63577b487a8bf877401312f22142094e2d4584.tar.gz
dotfiles-4d63577b487a8bf877401312f22142094e2d4584.tar.bz2
dotfiles-4d63577b487a8bf877401312f22142094e2d4584.tar.lz
dotfiles-4d63577b487a8bf877401312f22142094e2d4584.tar.xz
dotfiles-4d63577b487a8bf877401312f22142094e2d4584.tar.zst
dotfiles-4d63577b487a8bf877401312f22142094e2d4584.zip
all: zsh prompt update, general script updates
-rw-r--r--archlinux/root/etc/udev/rules.d/81-backlight.rules2
-rw-r--r--basics/.config/alacritty/alacritty.yml22
-rw-r--r--basics/.config/bat/config2
-rw-r--r--basics/.config/npm/npmrc9
-rwxr-xr-xbasics/.local/bin/dim-screen.sh65
-rwxr-xr-xbasics/.local/bin/setup-widescreen2
-rw-r--r--doom-emacs/.config/doom/init.el2
m---------doom-emacs/.emacs.d0
-rw-r--r--git/.config/git/config6
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart13
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/cycle_main_monitors.sh4
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/lasttag.sh4
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/polybar.sh29
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/rules10
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/toggle_floatmon.sh2
-rw-r--r--polybar/.config/polybar/config29
-rw-r--r--zsh/.config/starship.toml18
-rw-r--r--zsh/.config/zsh/.zshrc46
-rw-r--r--zsh/.local/share/zsh/functions/_deno111
-rw-r--r--zsh/.zshenv3
20 files changed, 259 insertions, 120 deletions
diff --git a/archlinux/root/etc/udev/rules.d/81-backlight.rules b/archlinux/root/etc/udev/rules.d/81-backlight.rules
new file mode 100644
index 0000000..68cb6cf
--- /dev/null
+++ b/archlinux/root/etc/udev/rules.d/81-backlight.rules
@@ -0,0 +1,2 @@
+KERNEL=="intel_backlight", SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness" RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
+KERNEL=="ddcci[0-9]*", SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness" RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
diff --git a/basics/.config/alacritty/alacritty.yml b/basics/.config/alacritty/alacritty.yml
index f127df7..c1a25f9 100644
--- a/basics/.config/alacritty/alacritty.yml
+++ b/basics/.config/alacritty/alacritty.yml
@@ -48,7 +48,7 @@ window:
# - Windowed
# - Maximized
# - Fullscreen
- startup_mode: Maximized
+ startup_mode: Maximized
# Window terminal applications to change Alacritty's window title.
dynamic_title: true
@@ -275,26 +275,6 @@ mouse:
# If this is `true`, the cursor is temporarily hidden when typing.
hide_when_typing: false
- url:
- # URL launcher
- #
- # This program is executed when clicking on a text which is recognized as a URL.
- # The URL is always added to the command as the last parameter.
- #
- # When set to `None`, URL launching will be disabled completely.
- #
- # Default:
- # - (macOS) open
- # - (Linux) xdg-open
- # - (Windows) explorer
- #launcher: xdg-open
-
- # URL modifiers
- #
- # These are the modifiers that need to be held down for opening URLs when clicking
- # on them. The available modifiers are documented in the key binding section.
- modifiers: None
-
selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
diff --git a/basics/.config/bat/config b/basics/.config/bat/config
index c4144ab..0d16ce8 100644
--- a/basics/.config/bat/config
+++ b/basics/.config/bat/config
@@ -4,7 +4,7 @@
# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
# for a list of all available themes
---theme="ansi-dark"
+--theme="gruvbox-dark"
# Enable this to use italic text on the terminal. This is not supported on all
# terminal emulators (like tmux, by default):
diff --git a/basics/.config/npm/npmrc b/basics/.config/npm/npmrc
index d072ac3..413eecb 100644
--- a/basics/.config/npm/npmrc
+++ b/basics/.config/npm/npmrc
@@ -1,8 +1,7 @@
-prefix=${XDG_DATA_HOME}/npm
-cache=${XDG_CACHE_HOME}/npm
-tmp=${XDG_RUNTIME_DIR}/npm
-init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
-
+cache=/home/peter/.cache/npm
+tmp=/run/user/1000/npm
+init-module=/home/peter/.config/npm/config/npm-init.js
sign-git-tag=false
+strict-ssl=false
diff --git a/basics/.local/bin/dim-screen.sh b/basics/.local/bin/dim-screen.sh
new file mode 100755
index 0000000..d983aee
--- /dev/null
+++ b/basics/.local/bin/dim-screen.sh
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+# Example notifier script -- lowers screen brightness, then waits to be killed
+# and restores previous brightness on exit.
+
+## CONFIGURATION ##############################################################
+
+# Brightness will be lowered to this value.
+min_brightness=0
+
+# If your video driver works with xbacklight, set -time and -steps for fading
+# to $min_brightness here. Setting steps to 1 disables fading.
+fade_time=200
+fade_steps=20
+
+# If you have a driver without RandR backlight property (e.g. radeon), set this
+# to use the sysfs interface and create a .conf file in /etc/tmpfiles.d/
+# containing the following line to make the sysfs file writable for group
+# "users":
+#
+# m /sys/class/backlight/acpi_video0/brightness 0664 root users - -
+#
+#sysfs_path=/sys/class/backlight/acpi_video0/brightness
+
+# Time to sleep (in seconds) between increments when using sysfs. If unset or
+# empty, fading is disabled.
+fade_step_time=0.05
+
+###############################################################################
+
+get_brightness() {
+ if [[ -z $sysfs_path ]]; then
+ xbacklight -get
+ else
+ cat $sysfs_path
+ fi
+}
+
+set_brightness() {
+ if [[ -z $sysfs_path ]]; then
+ xbacklight -steps 1 -set $1
+ else
+ echo $1 > $sysfs_path
+ fi
+}
+
+fade_brightness() {
+ if [[ -z $sysfs_path ]]; then
+ xbacklight -time $fade_time -steps $fade_steps -set $1
+ elif [[ -z $fade_step_time ]]; then
+ set_brightness $1
+ else
+ local level
+ for level in $(eval echo {$(get_brightness)..$1}); do
+ set_brightness $level
+ sleep $fade_step_time
+ done
+ fi
+}
+
+trap 'exit 0' TERM INT
+trap "set_brightness $(get_brightness); kill %%" EXIT
+fade_brightness $min_brightness
+sleep 2147483647 &
+wait
diff --git a/basics/.local/bin/setup-widescreen b/basics/.local/bin/setup-widescreen
index 0082ff9..b81013a 100755
--- a/basics/.local/bin/setup-widescreen
+++ b/basics/.local/bin/setup-widescreen
@@ -6,5 +6,5 @@ xrandr --newmode "3440x1440_30.00" 196.25 3440 3600 3952 4464 1440 1443 1453
xrandr --addmode HDMI1 3440x1440_30.00
-xrandr --output HDMI1 --mode 3440x1440_30.00 --primary --left-of eDP1
+xrandr --output HDMI1 --mode 3440x1440_30.00 --primary --right-of eDP1
diff --git a/doom-emacs/.config/doom/init.el b/doom-emacs/.config/doom/init.el
index b9a93d5..690298a 100644
--- a/doom-emacs/.config/doom/init.el
+++ b/doom-emacs/.config/doom/init.el
@@ -54,7 +54,7 @@
(evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding
- ;;(format +onsave) ; automated prettiness
+ (format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who dont like vim
multiple-cursors ; editing in many places at once
diff --git a/doom-emacs/.emacs.d b/doom-emacs/.emacs.d
-Subproject 88e18fc7c1d36bb2fe842d43ece0903556d2c5c
+Subproject 2731685095d1e6101b3215aa689426e1834ce00
diff --git a/git/.config/git/config b/git/.config/git/config
index 5b79b34..1bb1325 100644
--- a/git/.config/git/config
+++ b/git/.config/git/config
@@ -22,3 +22,9 @@
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
+[pull]
+ rebase = false
+[core]
+ pager = diff-so-fancy | less -RFX
+[init]
+ defaultBranch = master
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index 5e5c942..e67c890 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -12,7 +12,7 @@ hc emit_hook reload
if hc silent new_attr bool my_not_first_autostart; then
[ ! "$(pidof -x picom)" ] && herbstclient spawn picom
- xset s 600 5
+ xset s 600 120
#[ ! "$(pidof -x xss-lock)" ] && xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
[ ! "$(pidof -x xss-lock)" ] && herbstclient spawn xss-lock -n /usr/lib/xsecurelock/dimmer -l -- slock
fi
@@ -196,21 +196,27 @@ hc attr theme.floating.reset 1
hc attr theme.title_color '#000000'
hc attr theme.title_height 15
hc attr theme.title_font 'Dejavu Sans:pixelsize=12'
+hc attr theme.minimal.title_color '#000000'
+hc attr theme.minimal.title_height 10
+hc attr theme.minimal.title_font 'Dejavu Sans:pixelsize=8'
#hc attr theme.padding_top 2
hc attr theme.active.color '#9fbc00'
+hc attr theme.minimal.color '#8fcc00'
hc attr theme.normal.color '#454545'
hc attr theme.urgent.color orange
hc attr theme.inner_width 1
hc attr theme.inner_color black
hc attr theme.border_width 2
+hc attr theme.minimal.border_width 1
hc attr theme.floating.border_width 2
hc attr theme.floating.outer_width 1
hc attr theme.floating.outer_color black
hc attr theme.active.inner_color '#3E4A00'
hc attr theme.active.outer_color '#3E4A00'
hc attr theme.background_color '#141414'
+hc attr theme.minimal.tight_decoration true
hc set frame_border_active_color '#222222'
hc set frame_border_normal_color '#101010'
@@ -230,10 +236,11 @@ hc set mouse_recenter_gap 0
hc set hide_covered_windows off
hc set focus_crosses_monitor_boundaries on
hc set swap_monitors_to_get_tag on
-hc set focus_stealing_prevention off
-hc set focus_follows_mouse false
+hc set focus_stealing_prevention on
+hc set focus_follows_mouse on
hc set raise_on_focus on
+hc set update_dragged_clients 1
hc set tree_style '╾│ ├└╼─┐'
diff --git a/herbstluftwm/.config/herbstluftwm/cycle_main_monitors.sh b/herbstluftwm/.config/herbstluftwm/cycle_main_monitors.sh
index fbac0e3..ba9682d 100755
--- a/herbstluftwm/.config/herbstluftwm/cycle_main_monitors.sh
+++ b/herbstluftwm/.config/herbstluftwm/cycle_main_monitors.sh
@@ -6,10 +6,10 @@ hc() {
hc lock
-hc cycle_monitor
+hc cycle_monitor 1
while $(hc compare monitors.focus.name "!=" "")
do
- hc cycle_monitor
+ hc cycle_monitor 1
done
hc unlock
diff --git a/herbstluftwm/.config/herbstluftwm/lasttag.sh b/herbstluftwm/.config/herbstluftwm/lasttag.sh
index 170643b..b745cae 100755
--- a/herbstluftwm/.config/herbstluftwm/lasttag.sh
+++ b/herbstluftwm/.config/herbstluftwm/lasttag.sh
@@ -33,6 +33,6 @@ hc --idle '(tag_changed|goto_last_tag|reload)' \
;;
esac
read -r -d '' -a visible_tags <<< "$(hc list_monitors | cut -d\" -f2)"
- echo "new last_tag: ${lasttag}" >> /tmp/lasttag.log
- echo "new tag: ${tag}" >> /tmp/lasttag.log
+ #echo "new last_tag: ${lasttag}" >> /tmp/lasttag.log
+ #echo "new tag: ${tag}" >> /tmp/lasttag.log
done
diff --git a/herbstluftwm/.config/herbstluftwm/polybar.sh b/herbstluftwm/.config/herbstluftwm/polybar.sh
index 1c6d9a9..343af2a 100755
--- a/herbstluftwm/.config/herbstluftwm/polybar.sh
+++ b/herbstluftwm/.config/herbstluftwm/polybar.sh
@@ -36,25 +36,32 @@ done
wm=${1:+"-$1"}
#
-MONITOR=$(name "$primary_mon_name") polybar "topbar${wm}" &
+monitor=$(name "$primary_mon_name")
+bar_name="topbar${wm}"
+MONITOR=$monitor polybar "$bar_name" &
+echo "MONITOR=$monitor polybar $bar_name"
primary_height_var="${primary_mon_name}_height"
declare "${primary_mon_name}_height=$((${!primary_height_var}+16))"
hc set auto_detect_panels true
while read -r mon; do
- echo "launching bar on $(name "$mon")"
+ #echo "launching bar on $(name "$mon")"
height_var="$(name "$mon")_height"
- echo "${height_var}"
- echo "${!height_var}"
- OFFSET_Y="$((${!height_var}-16))" MONITOR="$(name "$mon")" polybar "topbar2${wm}" &
- echo "$(name "$mon") OFFSET Y $((${!height_var}-16))"
+ #echo "${height_var}"
+ #echo "${!height_var}"
+ offset=$((${!height_var}-16))
+ monitor=$(name "$mon")
+ bar_name="topbar2${wm}"
+ OFFSET_Y="$offset" MONITOR="$monitor" polybar "$bar_name" &
+ echo "Lauched OFFSET_Y=$offset MONITOR=$monitor polybar $bar_name"
+ #echo "$(name "$mon") OFFSET Y $((${!height_var}-16))"
#sleep 2
- echo -n "name: "
- name "$mon"
- echo
- echo -n "id hlwm: "
- hlwm_id "$mon"
+ #echo -n "name: "
+ #name "$mon"
+ #echo
+ #echo -n "id hlwm: "
+ #hlwm_id "$mon"
#hc pad "$(hlwm_id "$mon")" "${!height_var}"
done <<< "$(polybar -m)"
diff --git a/herbstluftwm/.config/herbstluftwm/rules b/herbstluftwm/.config/herbstluftwm/rules
index 4157ae1..bb1ad72 100755
--- a/herbstluftwm/.config/herbstluftwm/rules
+++ b/herbstluftwm/.config/herbstluftwm/rules
@@ -40,10 +40,16 @@ hc rule instance~'jetbrains-[a-z]*' class~'jetbrains-[a-z]*' \
floating=on floatplacement=center focus=off
hc rule instance='gcr-prompter' class='Gcr-prompter' title='Unlock Keyring' \
floating=on floatplacement=center focus=off
+hc rule instance="" class="" title="Steam" \
+ floating=on focus=off \
+ switchtag=off
hc rule instance=Steam class=Steam title~'Steam( .*)' \
- focus=off
+ floating=on focus=off \
+ switchtag=off
hc rule instance=Steam class=Steam title~'(.*)List(.*)' \
- focus=off
+ floating=on \
+ focus=off \
+ switchtag=off
hc rule instance=scratchpad \
tag=scratchpad
hc rule title='Discord Updater' \
diff --git a/herbstluftwm/.config/herbstluftwm/toggle_floatmon.sh b/herbstluftwm/.config/herbstluftwm/toggle_floatmon.sh
index f0b13b9..db1b69d 100755
--- a/herbstluftwm/.config/herbstluftwm/toggle_floatmon.sh
+++ b/herbstluftwm/.config/herbstluftwm/toggle_floatmon.sh
@@ -29,5 +29,5 @@ hc or , and . add_monitor "$size"+0+0 "$tag" "$monitor" \
. raise_monitor "$monitor" \
. pad "$monitor" 32 32 32 32 \
. lock_tag "$monitor" \
- , remove_monitor "$monitor" "$size"+0+0
+ , remove_monitor "$monitor"
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config
index 0467bb1..8e4a55e 100644
--- a/polybar/.config/polybar/config
+++ b/polybar/.config/polybar/config
@@ -78,8 +78,10 @@ double-click-left =
double-click-middle =
double-click-right =
+#cursor-click = pointer
+#cursor-scroll = ns-resize
cursor-click = pointer
-cursor-scroll = ns-resize
+cursor-scroll =
[bar/topbar-base]
inherit = bar/base
@@ -93,9 +95,6 @@ double-click-left =
double-click-middle =
double-click-right =
-cursor-click = pointer
-cursor-scroll = ns-resize
-
tray-position = right
tray-padding = 2
;tray-transparent = true
@@ -106,7 +105,7 @@ tray-detached = false
modules-left = hostname xwindow
modules-center =
-modules-right = filesystem backlight pulseaudio xkeyboard memory cpu wlan eth ethvpn battery temperature
+modules-right = filesystem backlight-laptop backlight-monitor pulseaudio xkeyboard memory cpu wlan eth ethvpn battery temperature
[bar/topbar-i3]
inherit = bar/topbar-base
@@ -148,9 +147,6 @@ double-click-left =
double-click-middle =
double-click-right =
-cursor-click = pointer
-cursor-scroll = ns-resize
-
modules-left =
modules-center = spotify
modules-right = date
@@ -247,9 +243,10 @@ type = internal/fs
interval = 25
mount-0 = /
+mount-1 = /home
label-mounted =  %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
-label-unmounted = %mountpoint% not mounted
+label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
@@ -339,7 +336,7 @@ label-song-ellipsis = true
type = internal/backlight
card = intel_backlight
format = <label> <ramp>
-label = ""
+label = ""
ramp-0 = 🌕
ramp-1 = 🌔
@@ -357,6 +354,17 @@ bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
+enable-scroll = true
+
+[module/backlight-laptop]
+inherit = module/backlight
+type = internal/backlight
+card = intel_backlight
+
+[module/backlight-monitor]
+inherit = module/backlight
+type = internal/backlight
+card = ddcci1
[module/xbacklight]
type = internal/xbacklight
@@ -380,6 +388,7 @@ inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
+
[module/cpu]
type = internal/cpu
interval = 2
diff --git a/zsh/.config/starship.toml b/zsh/.config/starship.toml
new file mode 100644
index 0000000..2e9eb81
--- /dev/null
+++ b/zsh/.config/starship.toml
@@ -0,0 +1,18 @@
+add_newline = true
+
+[cmd_duration]
+show_milliseconds = true
+
+[directory]
+truncate_to_repo = true
+
+[git_status]
+all_status = '$conflicted$stashed$deleted$renamed$staged$modified$untracked'
+staged = '[+$count](green)'
+modified = '[!$count](yellow)'
+untracked = '[?$count](red)'
+format = '([\[$conflicted$stashed$deleted$renamed$staged$modified$untracked$ahead_behind\]]($style) )'
+
+[status]
+format = '[$symbol$maybe_int]($style)'
+disabled = false
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index d2806f0..7e8c92a 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -97,26 +97,26 @@ bindkey '\C-x\C-e' edit-command-line
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git hg
zstyle ':vcs_info:*' check-for-changes true
-case $TERM in
- termite|*xterm*|rxvt|rxvt-unicode|rxvt-256color|rxvt-unicode-256color|(dt|k|E)term)
- precmd () {
- vcs_info
- print -Pn "\e]0;[%n@%M][%~]%#\a"
- }
- preexec () { print -Pn "\e]0;[%n@%M][%~]%# ($1)\a" }
- ;;
- screen|screen-256color)
- precmd () {
- vcs_info
- print -Pn "\e]83;title \"$1\"\a"
- print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~]\a"
- }
- preexec () {
- print -Pn "\e]83;title \"$1\"\a"
- print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~] ($1)\a"
- }
- ;;
-esac
+autoload -Uz add-zsh-hook
+
+function xterm_title_precmd() {
+ vcs_info
+ print -Pn "\e]0;[%n@%M][%~]%#\a"
+ [[ "$TERM" == 'screen'* ]] &&
+ print -Pn "\e]83;title " && print -n -- "\"${(q)1}\"\a" &&
+ print -Pn "\e]0;$TERM - (%L) [%n@%M]%#[%~]\a"
+}
+
+function xterm_title_preexec() {
+ print -Pn -- '\e]2;[%n@%M][%~]%# ' && print -n -- "(${(q)1})\a"
+ [[ "$TERM" == 'screen'* ]] &&
+ print -Pn "\e]83;title " && print -n -- "\"${(q)1}\"\a" &&
+ print -Pn "\e]0;$TERM - (%L) [%n@%M]%#[%~] " && print -n -- "(${(q)1})\a"
+}
+if [[ "$TERM" == (alacritty*|gnome*|konsole*|putty*|rxvt*|screen*|tmux*|xterm*|(dt|k|E)term*) ]]; then
+ add-zsh-hook -Uz precmd xterm_title_precmd
+ add-zsh-hook -Uz preexec xterm_title_preexec
+fi
if type "kitty" > /dev/null; then
alias kdiff="kitty +kitten diff"
@@ -176,6 +176,7 @@ source /usr/share/fzf/key-bindings.zsh
export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
[[ -e /usr/bin/virtualenvwrapper_lazy.sh ]] && \
source /usr/bin/virtualenvwrapper_lazy.sh
+export PYENV_ROOT="$XDG_DATA_HOME/pyenv"
[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && \
source /usr/share/doc/pkgfile/command-not-found.zsh
@@ -221,8 +222,9 @@ case "$TERM" in
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
return;;
*)
- source <(antibody bundle romkatv/powerlevel10k)
- [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
+ #source <(antibody bundle romkatv/powerlevel10k)
+ #[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
+ eval "$(starship init zsh)"
esac
# finish and output profile
diff --git a/zsh/.local/share/zsh/functions/_deno b/zsh/.local/share/zsh/functions/_deno
index 3bef4ba..11c023c 100644
--- a/zsh/.local/share/zsh/functions/_deno
+++ b/zsh/.local/share/zsh/functions/_deno
@@ -35,7 +35,7 @@ _deno() {
case $line[1] in
(bundle)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -47,7 +47,7 @@ _arguments "${_arguments_options[@]}" \
'--no-remote[Do not resolve remote modules]' \
'--no-check[Skip type checking modules]' \
'--lock-write[Write lock file (use with --lock)]' \
-'--watch[Watch for file changes and restart process automatically]' \
+'--watch[UNSTABLE: Watch for file changes and restart process automatically]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -61,7 +61,7 @@ _arguments "${_arguments_options[@]}" \
;;
(cache)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -85,7 +85,7 @@ _arguments "${_arguments_options[@]}" \
;;
(compile)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -95,6 +95,8 @@ _arguments "${_arguments_options[@]}" \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
+'--allow-env=[Allow environment access]' \
+'--allow-run=[Allow running subprocesses]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
@@ -106,14 +108,12 @@ _arguments "${_arguments_options[@]}" \
'--no-remote[Do not resolve remote modules]' \
'--no-check[Skip type checking modules]' \
'--lock-write[Write lock file (use with --lock)]' \
-'--allow-env[Allow environment access]' \
-'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
+'--prompt[Fallback to prompt if required permission wasn'\''t passed]' \
'--cached-only[Require that remote dependencies are already cached]' \
-'--lite[Use lite runtime]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -138,9 +138,27 @@ _arguments "${_arguments_options[@]}" \
':shell:(zsh bash fish powershell elvish)' \
&& ret=0
;;
+(coverage)
+_arguments "${_arguments_options[@]}" \
+'--ignore=[Ignore coverage files]' \
+'*--include=[Include source files in the report]' \
+'*--exclude=[Exclude source files from the report]' \
+'-L+[Set log level]: :(debug info)' \
+'--log-level=[Set log level]: :(debug info)' \
+'--lcov[Output coverage report in lcov format]' \
+'-h[Prints help information]' \
+'--help[Prints help information]' \
+'-V[Prints version information]' \
+'--version[Prints version information]' \
+'--unstable[Enable unstable features and APIs]' \
+'-q[Suppress diagnostic output]' \
+'--quiet[Suppress diagnostic output]' \
+':files:_files' \
+&& ret=0
+;;
(doc)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'-L+[Set log level]: :(debug info)' \
@@ -160,18 +178,19 @@ _arguments "${_arguments_options[@]}" \
;;
(eval)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'--lock=[Check the specified lock file]' \
'--cert=[Load certificate authority from PEM encoded file]' \
-'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
-'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
+'--inspect=[Activate inspector on host:port (default: 127.0.0.1:9229)]' \
+'--inspect-brk=[Activate inspector on host:port and break at start of user script]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
+'--ext=[Set standard input (stdin) content type]: :(ts tsx js jsx)' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--no-remote[Do not resolve remote modules]' \
@@ -194,12 +213,12 @@ _arguments "${_arguments_options[@]}" \
;;
(fmt)
_arguments "${_arguments_options[@]}" \
-'--ext=[Set standard input (stdin) content type]: :(ts tsx js jsx md)' \
-'--ignore=[Ignore formatting particular source files. Use with --unstable]' \
+'--ext=[Set standard input (stdin) content type]: :(ts tsx js jsx md json jsonc)' \
+'--ignore=[Ignore formatting particular source files]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--check[Check if the source files are formatted]' \
-'--watch[Watch for file changes and restart process automatically]' \
+'--watch[UNSTABLE: Watch for file changes and restart process automatically]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -215,11 +234,12 @@ _arguments "${_arguments_options[@]}" \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'--cert=[Load certificate authority from PEM encoded file]' \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--location=[Show files used for origin bound APIs like the Web Storage API when running a script with '\''--location=<HREF>'\'']' \
+'--import-map=[Load import map file]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--no-check[Skip type checking modules]' \
-'--json[Outputs the information in JSON format]' \
+'--json[UNSTABLE: Outputs the information in JSON format]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -232,7 +252,7 @@ _arguments "${_arguments_options[@]}" \
;;
(install)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -242,8 +262,10 @@ _arguments "${_arguments_options[@]}" \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
-'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
-'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
+'--allow-env=[Allow environment access]' \
+'--allow-run=[Allow running subprocesses]' \
+'--inspect=[Activate inspector on host:port (default: 127.0.0.1:9229)]' \
+'--inspect-brk=[Activate inspector on host:port and break at start of user script]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
@@ -255,12 +277,11 @@ _arguments "${_arguments_options[@]}" \
'--no-remote[Do not resolve remote modules]' \
'--no-check[Skip type checking modules]' \
'--lock-write[Write lock file (use with --lock)]' \
-'--allow-env[Allow environment access]' \
-'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
+'--prompt[Fallback to prompt if required permission wasn'\''t passed]' \
'--cached-only[Require that remote dependencies are already cached]' \
'-f[Forcefully overwrite existing installation]' \
'--force[Forcefully overwrite existing installation]' \
@@ -306,15 +327,15 @@ _arguments "${_arguments_options[@]}" \
;;
(repl)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
'--reload=[Reload source code cache (recompile TypeScript)]' \
'--lock=[Check the specified lock file]' \
'--cert=[Load certificate authority from PEM encoded file]' \
-'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
-'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
+'--inspect=[Activate inspector on host:port (default: 127.0.0.1:9229)]' \
+'--inspect-brk=[Activate inspector on host:port and break at start of user script]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
@@ -335,7 +356,7 @@ _arguments "${_arguments_options[@]}" \
;;
(run)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -345,8 +366,10 @@ _arguments "${_arguments_options[@]}" \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
-'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
-'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
+'--allow-env=[Allow environment access]' \
+'--allow-run=[Allow running subprocesses]' \
+'--inspect=[Activate inspector on host:port (default: 127.0.0.1:9229)]' \
+'--inspect-brk=[Activate inspector on host:port and break at start of user script]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
@@ -355,14 +378,13 @@ _arguments "${_arguments_options[@]}" \
'--no-remote[Do not resolve remote modules]' \
'--no-check[Skip type checking modules]' \
'--lock-write[Write lock file (use with --lock)]' \
-'--allow-env[Allow environment access]' \
-'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
+'--prompt[Fallback to prompt if required permission wasn'\''t passed]' \
'--cached-only[Require that remote dependencies are already cached]' \
-'(--inspect --inspect-brk)--watch[Watch for file changes and restart process automatically]' \
+'(--inspect --inspect-brk)--watch[UNSTABLE: Watch for file changes and restart process automatically]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -375,7 +397,7 @@ _arguments "${_arguments_options[@]}" \
;;
(test)
_arguments "${_arguments_options[@]}" \
-'--import-map=[UNSTABLE: Load import map file]' \
+'--import-map=[Load import map file]' \
'-c+[Load tsconfig.json configuration file]' \
'--config=[Load tsconfig.json configuration file]' \
'-r+[Reload source code cache (recompile TypeScript)]' \
@@ -385,28 +407,33 @@ _arguments "${_arguments_options[@]}" \
'--allow-read=[Allow file system read access]' \
'--allow-write=[Allow file system write access]' \
'--allow-net=[Allow network access]' \
-'--inspect=[activate inspector on host:port (default: 127.0.0.1:9229)]' \
-'--inspect-brk=[activate inspector on host:port and break at start of user script]' \
+'--allow-env=[Allow environment access]' \
+'--allow-run=[Allow running subprocesses]' \
+'--inspect=[Activate inspector on host:port (default: 127.0.0.1:9229)]' \
+'--inspect-brk=[Activate inspector on host:port and break at start of user script]' \
'--location=[Value of '\''globalThis.location'\'' used by some web APIs]' \
'--v8-flags=[Set V8 command line options (for help: --v8-flags=--help)]' \
'--seed=[Seed Math.random()]' \
'--filter=[Run tests with this string or pattern in the test name]' \
-'(--inspect --inspect-brk)--coverage=[Collect coverage information]' \
+'(--inspect --inspect-brk)--coverage=[UNSTABLE: Collect coverage profile data]' \
+'-j+[]' \
+'--jobs=[]' \
'-L+[Set log level]: :(debug info)' \
'--log-level=[Set log level]: :(debug info)' \
'--no-remote[Do not resolve remote modules]' \
'--no-check[Skip type checking modules]' \
'--lock-write[Write lock file (use with --lock)]' \
-'--allow-env[Allow environment access]' \
-'--allow-run[Allow running subprocesses]' \
'--allow-plugin[Allow loading plugins]' \
'--allow-hrtime[Allow high resolution time measurement]' \
'-A[Allow all permissions]' \
'--allow-all[Allow all permissions]' \
+'--prompt[Fallback to prompt if required permission wasn'\''t passed]' \
'--cached-only[Require that remote dependencies are already cached]' \
'--no-run[Cache test modules, but don'\''t run tests]' \
+'--doc[UNSTABLE: type check code blocks]' \
'--fail-fast[Stop on first error]' \
'--allow-none[Don'\''t return error code if no test files are found]' \
+'(--no-run --coverage)--watch[UNSTABLE: Watch for file changes and restart process automatically]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
@@ -472,8 +499,9 @@ _deno_commands() {
local commands; commands=(
"bundle:Bundle module and dependencies into single file" \
"cache:Cache the dependencies" \
-"compile:Compile the script into a self contained executable" \
+"compile:UNSTABLE: Compile the script into a self contained executable" \
"completions:Generate shell completions" \
+"coverage:Print coverage reports" \
"doc:Show documentation for a module" \
"eval:Eval script" \
"fmt:Format source files" \
@@ -482,7 +510,7 @@ _deno_commands() {
"lsp:Start the language server" \
"lint:Lint source files" \
"repl:Read Eval Print Loop" \
-"run:Run a program given a filename or url to the module. Use '-' as a filename to read from stdin." \
+"run:Run a JavaScript or TypeScript program" \
"test:Run tests" \
"types:Print runtime TypeScript declarations" \
"upgrade:Upgrade deno executable to given version" \
@@ -518,6 +546,13 @@ _deno__completions_commands() {
)
_describe -t commands 'deno completions commands' commands "$@"
}
+(( $+functions[_deno__coverage_commands] )) ||
+_deno__coverage_commands() {
+ local commands; commands=(
+
+ )
+ _describe -t commands 'deno coverage commands' commands "$@"
+}
(( $+functions[_deno__doc_commands] )) ||
_deno__doc_commands() {
local commands; commands=(
diff --git a/zsh/.zshenv b/zsh/.zshenv
index 8b585a9..4f1727d 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -46,6 +46,9 @@ path=("$npm_config_prefix/bin" "$path[@]")
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
export MACHINE_STORAGE_PATH="$XDG_DATA_HOME/docker-machine"
+# Python
+export PYENV_ROOT="$XDG_DATA_HOME/pyenv"
+
# Other
export CCACHE_CONFIGPATH="$XDG_CONFIG_HOME/ccache.conf"
export CCACHE_DIR="$XDG_CACHE_HOME/ccache"