Compare commits

..

3 commits

Author SHA1 Message Date
c91aecec86 zsh: git corto 2022-03-17 09:31:56 -03:00
724a87ceb3 zsh: Alias gitdf add 2022-03-17 09:31:24 -03:00
c2cdc30da0 Atajos para abrir cosas de Lunar 2022-03-17 09:31:01 -03:00
7 changed files with 57 additions and 0 deletions

19
.local/bin/abrir Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh -e
vm() {
doas rc-service libvirtd start
sleep 2
doas virsh -c qemu:///system start --domain alpine-sutty || true
sshfs nulo@sutty.vm: sutty
}
if test "$(ls ~/sutty | wc -l)" = 0; then
vm
fi
if test "$1" = editor; then
footclient --working-directory="$HOME/$2" vis
fi
if test "$1" = terminal; then
footclient env TERM=xterm-256color ssh -t nulo@sutty.vm "cd '$2'; $3; $SHELL -l"
fi

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Editor backend
Exec=abrir editor sutty/lunar-backend
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Editor frontend app
Exec=abrir editor sutty/lunar
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: SSH producción panel
Exec=footclient ssh root@panel.lunarcomunidad.com
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Terminal `make android-dev` frontend app
Exec=abrir terminal lunar 'make android-dev'
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Terminal frontend app
Exec=abrir terminal lunar
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

3
.zshrc
View file

@ -40,6 +40,7 @@ alias r="trash -r"
alias a='nohup nemo "$(pwd)" >/dev/null &'
alias g='git'
alias gcp='git commit -p'
alias gc='git commit'
alias gs='git status'
@ -49,7 +50,9 @@ alias gp='git push'
alias gpo='git push origin' # Para tags: git push origin 1.0.2 / gpo 1.0.2
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
alias gd='gitdf'
alias gdcp='gitdf commit -p'
alias gda='gitdf add'
alias gds='gitdf status'
alias gdp='gitdf push'