adds db commands to fish
This commit is contained in:
parent
5944a392b2
commit
75568115de
1 changed files with 15 additions and 0 deletions
|
|
@ -124,6 +124,21 @@
|
||||||
# Open file in neovim
|
# Open file in neovim
|
||||||
nvim $fullpath
|
nvim $fullpath
|
||||||
'';
|
'';
|
||||||
|
dbui_stg = /* fish */ ''
|
||||||
|
if test "$hn" = "dnsc-work"
|
||||||
|
kill_tunnels && ssh -NL 4321:192.168.0.168:3306 otc & nvim +DBUI
|
||||||
|
else
|
||||||
|
echo "Only on work machine."
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
dbui_prod = /* fish */ ''
|
||||||
|
if test "$hn" = "dnsc-work"
|
||||||
|
kill_tunnels && ssh -NL 4322:192.168.0.38:3306 otc-prod & nvim +DBUI
|
||||||
|
else
|
||||||
|
echo "Only on work machine."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
'';
|
||||||
fish_mode_prompt = /* fish */ ''
|
fish_mode_prompt = /* fish */ ''
|
||||||
switch $fish_bind_mode
|
switch $fish_bind_mode
|
||||||
case default
|
case default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue