Compare commits

...

6 commits

Author SHA1 Message Date
odrling f49894d096
[bash] load envs 2024-03-27 21:42:41 +01:00
odrling 892dc6a2c0
[envs] support bash 2024-03-27 21:42:40 +01:00
odrling cf4ed7a303
[bash] disable Ctrl+s 2024-03-27 21:29:20 +01:00
odrling 9e159a65b2
[bash] minor change 2024-03-27 21:24:36 +01:00
odrling bdaf19e043
[odrbin] mpvscreens: use mpv 2024-03-27 18:53:01 +01:00
odrling aec036e30d
[mpv] add binding to upload current file 2024-03-27 18:52:23 +01:00
4 changed files with 17 additions and 6 deletions

View file

@ -8,6 +8,7 @@
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
[[ $- != *i* ]] && return
stty -ixon
## options
shopt -s cdspell # correct minor spelling errors in cd
@ -65,9 +66,7 @@ osc7_cwd() {
precmd_functions+=(osc7_cwd)
# set tty for gpg-agent
GPG_TTY="$(tty)"
export GPG_TTY
export GPG_TTY="$(tty)"
export PINENTRY_USER_DATA="USE_CURSES=1"
odr-update-gpg-agent() {
@ -91,6 +90,8 @@ set_prompt() {
}
precmd_functions+=(set_prompt)
source ~/.zsh/envs.zsh
. ~/.shaliases
[ -f ~/.bashrc.local ] && . ~/.bashrc.local

View file

@ -11,6 +11,7 @@ x cycle-values audio-channels "auto-safe" "stereo"
o cycle video-unscaled
Y cycle sub-font-provider
y async run /bin/execlineb -Pc 'pipeline { echo ${path} } clipboard' ; show-text "path copied to clipboard"
Ctrl+y async run hikari -c '${path}' ; show-text "uploading ${path} to hikari"
² script-binding console/enable
: script-binding console/enable
P script-binding catch_up

View file

@ -1,3 +1,3 @@
#!/bin/sh
cd $HOME/Pictures/${1:-mpv}
ls -t -1 | nsxiv -
cd "$HOME/Pictures/${1:-mpv}"
ls -t -1 | mpv --pause --no-resume-playback --playlist=-

View file

@ -115,8 +115,12 @@ odr-display-hooks() {
git config --get-regexp odrhooks\. 2>/dev/null
}
odr_previous_dir=''
odr-defaultenv() {
[ "$PWD" = "${odr_previous_dir}" ] && return
export DETECTED_HOOKS=
odr_previous_dir="$PWD"
odr-load-python-venv
odr-loadenvrc
odr-display-hooks
@ -146,7 +150,12 @@ layout() {
ewarn "layout was called and is a no-op, should be removed in .envrc"
}
chpwd_functions+=(odr-envs)
case "$0" in
*bash)
precmd_functions+=(odr-envs) ;;
*zsh)
chpwd_functions+=(odr-envs) ;;
esac
alias allow-envrc=odr-allow-envrc