From 7c4630704a7af5418b5af95e9efcdbfe7a365898 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 12 Apr 2020 18:10:16 -0300 Subject: Added some shortcut commands for ssh --- .config/fish/abbreviations.fish | 6 ++++-- .config/fish/config.fish | 1 + .config/fish/fish_variables | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to '.config/fish') diff --git a/.config/fish/abbreviations.fish b/.config/fish/abbreviations.fish index fef05dda..04c5ac3a 100644 --- a/.config/fish/abbreviations.fish +++ b/.config/fish/abbreviations.fish @@ -81,5 +81,7 @@ abbr rmrf 'rm -rf' abbr tc 'tar czvf' abbr tx 'tar xzvf' -# Other -abbr pr 'ping rogs.me' \ No newline at end of file +# SSH +abbr cloud 'ssh root@cloud.rogs.me' +abbr coca-prod 'ssh -i ~/.ssh/keys/pincodes-api.pem ubuntu@api-pincodes.destapp.com' +abbr coca-dev 'ssh -i ~/.ssh/keys/pincodes-api.pem ubuntu@dev-api-pincodes.destapp.com' diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 9564ea41..2722c69b 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -18,6 +18,7 @@ alias mv='mv -i' alias ..='cd ..' alias doom='$HOME/.emacs.d/bin/doom' alias ls='exa' +alias pr='ping rogs.me' source "$HOME/.config/fish/abbreviations.fish" diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index bc214e3c..0d961211 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -9,6 +9,9 @@ SETUVAR __fish_initialized:3100 SETUVAR _fish_abbr_cdccb:cd\x20\x7e/code/massive/cocacola/new\x2dbackend SETUVAR _fish_abbr_cdccf:cd\x20\x7e/code/massive/cocacola/frontend SETUVAR _fish_abbr_cdimb:cd\x20\x7e/code/personal/identidadMisional/backend +SETUVAR _fish_abbr_cloud:ssh\x20root\x40cloud\x2erogs\x2eme +SETUVAR _fish_abbr_coca_2D_dev:ssh\x20\x2di\x20\x7e/\x2essh/keys/pincodes\x2dapi\x2epem\x20ubuntu\x40dev\x2dapi\x2dpincodes\x2edestapp\x2ecom +SETUVAR _fish_abbr_coca_2D_prod:ssh\x20\x2di\x20\x7e/\x2essh/keys/pincodes\x2dapi\x2epem\x20ubuntu\x40api\x2dpincodes\x2edestapp\x2ecom SETUVAR _fish_abbr_g:git SETUVAR _fish_abbr_ga:git\x20add SETUVAR _fish_abbr_ga_2E_:git\x20add\x20\x2e @@ -68,7 +71,6 @@ SETUVAR _fish_abbr_nr:npm\x20remove SETUVAR _fish_abbr_ns:npm\x20start SETUVAR _fish_abbr_nt:npm\x20test SETUVAR _fish_abbr_nu:npm\x20update -SETUVAR _fish_abbr_pr:ping\x20rogs\x2eme SETUVAR _fish_abbr_r:sudo\x20pacman\x20\x2dR SETUVAR _fish_abbr_rmr:rm\x20\x2dr SETUVAR _fish_abbr_rmrf:rm\x20\x2drf -- cgit v1.2.3