Compare commits
6 commits
47b6da0cc8
...
f49894d096
Author | SHA1 | Date | |
---|---|---|---|
odrling | f49894d096 | ||
odrling | 892dc6a2c0 | ||
odrling | cf4ed7a303 | ||
odrling | 9e159a65b2 | ||
odrling | bdaf19e043 | ||
odrling | aec036e30d |
7
.bashrc
7
.bashrc
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=-
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue