tmux fzf and 1password

This commit is contained in:
Noah Masur
2020-07-30 21:12:17 -04:00
parent 191a29079c
commit 3949f763f4
13 changed files with 105 additions and 20 deletions

View File

@ -49,11 +49,15 @@ function aliases --description 'All aliases'
alias proj='cd $PROJ'
abbr -a ssl 'openssl req -new -newkey rsa:2048 -nodes' \
'-keyout server.key -out server.csr'
abbr -a get-fingerprint 'ssh-keyscan myhost.com | ssh-keygen -lf -'
abbr -a public-key 'ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub'
# Docker
abbr -a dc '$DOTS/bin/docker_cleanup'
abbr -a dr 'docker run'
abbr -a dr 'docker run --rm -it'
abbr -a db 'docker build . -t'
abbr -a ds 'docker ps -a'
abbr -a de 'docker exec -it'
alias connect='docker run --rm -v ~/.aws:/root/.aws -v ~/.ssh:/root/.ssh -it connect-aws'
# Terraform

View File

@ -0,0 +1 @@
/usr/local/opt/fzf/shell/key-bindings.fish

View File

@ -0,0 +1,7 @@
#!/usr/local/bin/fish
function mactools
function copy --description 'Copy file contents into clipboard'
cat $argv | pbcopy
end
end

View File

@ -13,6 +13,16 @@ function 'pyenv' --description 'Features for Pyenv virtualenvs'
source ~/.pyenv/versions/$argv[1]/bin/activate.fish
end
# vers - switch to pyenv virtualenv with fuzzy menu
function 'vers' --description 'Switch to virtualenv'
set pyversion (bash -c "pyenv versions --bare --skip-aliases" | fzf)
if test $status -ne 0
return 1
else
source "$PYENV_VERSIONS_DIR/$pyversion/bin/activate.fish"
end
end
function 'ipy' --description 'Borrow iPython interpreter'
set STORED_VENV $VIRTUAL_ENV
source $PYENV_VERSIONS_DIR/ipython/bin/activate.fish; and \