-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added copy-remote-vps function
- Loading branch information
Showing
1 changed file
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,16 @@ | |
]; | ||
|
||
functions = { | ||
copy-remote-vps = { | ||
body = '' | ||
# Update git submodules | ||
git -C ~/dev/selfhosting submodule update --recursive --remote | ||
# Copy everything to remote | ||
rsync -avzu --exclude=".git/" ~/dev/selfhosting/ [email protected]:/srv/compose/ | ||
''; | ||
}; | ||
|
||
cheat = { | ||
description = "Alias for cheat.sh"; | ||
body = '' | ||
|
@@ -76,8 +86,8 @@ | |
}; | ||
|
||
list_dir = { | ||
body = "if status --is-interactive; echo ''; ls; end;"; | ||
onVariable = "PWD"; | ||
body = "if status --is-interactive; echo ''; ls; end;"; | ||
onVariable = "PWD"; | ||
}; | ||
|
||
# wrapper for non-posix ssh-agent | ||
|
@@ -132,9 +142,9 @@ | |
shellAbbrs = { | ||
# Git | ||
gco = "git checkout"; | ||
gs = "git status"; | ||
gb = "git branch"; | ||
ga = "git add"; | ||
gs = "git status"; | ||
gb = "git branch"; | ||
ga = "git add"; | ||
gaa = "git add ."; | ||
# "gcm" = { | ||
# expansion = "git commit -m '%'"; | ||
|
@@ -151,30 +161,30 @@ | |
# Navigating files and directories | ||
la = "eza -1 --icons --group-directories-first --grid --long --no-time --group --all"; | ||
ls = "eza -1 --icons --group-directories-first"; | ||
l = "eza --git --icons --group-directories-first --long --group --all"; | ||
l = "eza --git --icons --group-directories-first --long --group --all"; | ||
|
||
c = "bat"; | ||
cat = "bat"; | ||
c = "bat"; | ||
cat = "bat"; | ||
catp = "bat --plain"; | ||
|
||
cd = "z"; | ||
|
||
# Utilities | ||
cl = "clear"; | ||
ip = "ip -c"; | ||
h = "history"; | ||
h = "history"; | ||
hgrep = "history | rg $1"; | ||
mkdir = "mkdir -p"; | ||
wget = "wget -c"; | ||
wget = "wget -c"; | ||
|
||
# System | ||
meminfo = "free -hlt --mega"; | ||
mostu = "du -hsx * | sort -rh | head -10"; | ||
top = "btop"; | ||
ciao = "shutdown now"; | ||
mostu = "du -hsx * | sort -rh | head -10"; | ||
top = "btop"; | ||
ciao = "shutdown now"; | ||
|
||
# Editors | ||
vi = "nvim"; | ||
vi = "nvim"; | ||
vim = "nvim"; | ||
|
||
# Hyprland | ||
|