mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
tmux fzf and 1password
This commit is contained in:
@ -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
|
||||
|
1
fish.configlink/functions/fzf_key_bindings.fish
Symbolic link
1
fish.configlink/functions/fzf_key_bindings.fish
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/local/opt/fzf/shell/key-bindings.fish
|
7
fish.configlink/functions/mactools.fish
Normal file
7
fish.configlink/functions/mactools.fish
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/local/bin/fish
|
||||
|
||||
function mactools
|
||||
function copy --description 'Copy file contents into clipboard'
|
||||
cat $argv | pbcopy
|
||||
end
|
||||
end
|
@ -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 \
|
||||
|
Reference in New Issue
Block a user