Merge branch 'master' of git.jpatrick.io:james/dotfiles
This commit is contained in:
commit
81030a0f84
2
emacs/README.md
Normal file
2
emacs/README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
I use [doom](https://github.com/hlissner/doom-emacs). Just look there for your
|
||||||
|
documentation.
|
|
@ -101,7 +101,7 @@
|
||||||
;;macos ; MacOS-specific commands
|
;;macos ; MacOS-specific commands
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
pass ; password manager for nerds
|
||||||
;;pdf ; pdf enhancements
|
;;pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
;;rgb ; creating color strings
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
EMACSD := ~/.emacs.d
|
EMACSD := ~/.emacs.d
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
SOURCE := $(SRC_DIR)/gitconfig
|
SOURCE := $(SRC_DIR)/gitconfig
|
||||||
TARGET := ~/.gitconfig
|
TARGET := ~/.gitconfig
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
GIT_HOOK_SRC = $(SRC_DIR)/post-merge
|
GIT_HOOK_SRC = $(SRC_DIR)/post-merge
|
||||||
GIT_HOOK_TARGET = $(abspath $(SRC_DIR)/..)/.git/hooks/post-merge
|
GIT_HOOK_TARGET = $(abspath $(SRC_DIR)/..)/.git/hooks/post-merge
|
||||||
|
|
1
makefile
1
makefile
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include lib/shared.mk
|
include lib/shared.mk
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
CONFIG_SRC := $(SRC_DIR)/config
|
CONFIG_SRC := $(SRC_DIR)/config
|
||||||
CONFIG_TRGT := ~/.ssh/config
|
CONFIG_TRGT := ~/.ssh/config
|
||||||
GIT_KEY := ~/.ssh/git.jpatrick.io
|
GIT_KEY := ~/.ssh/git.jpatrick.io
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
SOURCE := $(SRC_DIR)/tmux.conf
|
SOURCE := $(SRC_DIR)/tmux.conf
|
||||||
TARGET := ~/.tmux.conf
|
TARGET := ~/.tmux.conf
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -19,7 +19,7 @@ bind ;c hint -c [class*="expand"],[class="togg"]
|
||||||
command ba back
|
command ba back
|
||||||
command fo foward
|
command fo foward
|
||||||
|
|
||||||
" restore bookmarks
|
" restore buildin bookmarks
|
||||||
unbind <C-b>
|
unbind <C-b>
|
||||||
|
|
||||||
" use h/l to cycle though tabs.
|
" use h/l to cycle though tabs.
|
||||||
|
@ -34,6 +34,8 @@ bind n findnext 1
|
||||||
bind N findnext -1
|
bind N findnext -1
|
||||||
bind ,<Space> nohlsearch
|
bind ,<Space> nohlsearch
|
||||||
|
|
||||||
|
bind <Space> fillcmdline_notrail
|
||||||
|
|
||||||
" Text to speech is broken on all of my firefox instances. I'll just use my
|
" Text to speech is broken on all of my firefox instances. I'll just use my
|
||||||
" own.
|
" own.
|
||||||
unbind ;r
|
unbind ;r
|
||||||
|
@ -46,5 +48,31 @@ set incsearch true
|
||||||
" Use custom theme
|
" Use custom theme
|
||||||
colorscheme onedark
|
colorscheme onedark
|
||||||
|
|
||||||
|
" Quick marks
|
||||||
|
quickmark r https://redmine.greenfiling.com/projects/general/issues?query_id=67
|
||||||
|
quickmark G https://github.com/
|
||||||
|
quickmark g https://git.jpatrick.io/
|
||||||
|
quickmark l https://lobste.rs/
|
||||||
|
quickmark n https://news.ycombinator.com/
|
||||||
|
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Hic Sunt Dracones
|
||||||
|
command fixamo js tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""').then(tri.excmds.fillcmdline_tmp(3000, "Permissions added to user.js. Please restart Firefox to make them take affect.")))
|
||||||
|
command fixamo_quiet jsb tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""'))
|
||||||
|
|
||||||
|
fixamo_quiet
|
||||||
|
|
||||||
|
setpref browser.aboutConfig.showWarning false
|
||||||
|
setpref extensions.pocket.enabled false
|
||||||
|
"setpref dom.media.mediasession.enabled true
|
||||||
|
setpref privacy.trackingprotection.fingerprinting.enabled true
|
||||||
|
setpref privacy.trackingprotection.cryptomining.enabled true
|
||||||
|
setpref privacy.trackingprotection.enabled true
|
||||||
|
setpref browser.urlbar.speculativeConnect.enabled false
|
||||||
|
setpref network.cookie.cookieBehavior 1
|
||||||
|
setpref beacon.enabled false
|
||||||
|
setpref network.IDN_show_punycode true
|
||||||
|
|
||||||
" vim: set filetype=vim:
|
" vim: set filetype=vim:
|
||||||
" -*- mode: vim -*-
|
" -*- mode: vimrc -*-
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- mode: makefile-gmake; -*-
|
||||||
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
include ../lib/shared.mk
|
include ../lib/shared.mk
|
||||||
|
|
40
zsh/modules/bin/fzf-pass
Executable file
40
zsh/modules/bin/fzf-pass
Executable file
|
@ -0,0 +1,40 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$HOME/.password-store" || exit 1
|
||||||
|
PASSFILE=$(tree -Ffi | grep '.gpg' | sed 's/.gpg$//g' | sed 's/^..//' | fzf)
|
||||||
|
|
||||||
|
if [ -z "$PASSFILE" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
PASSDATA="$(pass "$PASSFILE")"
|
||||||
|
USRNAME="$(echo "$PASSDATA" | grep "username:" | cut -d' ' -f2-)"
|
||||||
|
PASS="$(echo "$PASSDATA" | head -n 1)"
|
||||||
|
URL="$(echo "$PASSDATA" | grep url: | cut -d' ' -f2-)"
|
||||||
|
|
||||||
|
RESP=$(cat <<EOF | fzf
|
||||||
|
Autotype
|
||||||
|
Username
|
||||||
|
Password
|
||||||
|
URL
|
||||||
|
EOF
|
||||||
|
);
|
||||||
|
|
||||||
|
swaymsg move container to workspace 9
|
||||||
|
|
||||||
|
case "$RESP" in
|
||||||
|
Autotype)
|
||||||
|
ydotool type "$USRNAME" && ydotool key Tab && ydotool type "$PASS" && ydotool key Enter
|
||||||
|
;;
|
||||||
|
Username)
|
||||||
|
ydotool type "$USRNAME"
|
||||||
|
;;
|
||||||
|
Password)
|
||||||
|
ydotool type "$PASS"
|
||||||
|
;;
|
||||||
|
URL)
|
||||||
|
ydotool type "$URL"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
exit 1
|
||||||
|
esac
|
|
@ -21,6 +21,10 @@ zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2
|
||||||
zplug "zsh-users/zsh-completions", as:plugin, defer:2
|
zplug "zsh-users/zsh-completions", as:plugin, defer:2
|
||||||
zplug "zsh-users/zsh-history-substring-search", as:plugin, defer:2
|
zplug "zsh-users/zsh-history-substring-search", as:plugin, defer:2
|
||||||
|
|
||||||
|
if (($+commands[yarn])) ; then
|
||||||
|
zplug "g-plane/zsh-yarn-autocompletions", hook-build:"./zplug.zsh", defer:2
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$SSH_CONNECTION" ] ; then
|
if [ -n "$SSH_CONNECTION" ] ; then
|
||||||
zplug "${ZDIR}/modules/prompt/", from:local, use:uncommon.zsh, as:theme
|
zplug "${ZDIR}/modules/prompt/", from:local, use:uncommon.zsh, as:theme
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user