Skip to content

Commit

Permalink
feat: added copy-remote-vps function
Browse files Browse the repository at this point in the history
  • Loading branch information
standard3 committed Mar 30, 2024
1 parent 99e036c commit 1e3064d
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions home/applications/terminal/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand All @@ -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
Expand Down Expand Up @@ -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 '%'";
Expand All @@ -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
Expand Down

0 comments on commit 1e3064d

Please sign in to comment.