AutoYADM commit: 2025-02-26 20:30:04

This commit is contained in:
Daniel Fichtinger 2025-02-26 20:30:04 -05:00
parent 63bd4afb06
commit ff6de15e67
15 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,4 @@
function autosshtunnel
start-ssh-agent
tmux new-session -d 'autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 1675:ibox:22 isa@172.105.6.137'
end

View file

@ -0,0 +1,3 @@
function c
clear
end

View file

@ -0,0 +1,4 @@
function cat --wraps=bat --description 'alias cat=bat'
bat $argv
end

View file

@ -0,0 +1,4 @@
function cl
cd $argv
ls
end

View file

@ -0,0 +1,3 @@
function copy
xclip -sel clip < $argv
end

View file

@ -0,0 +1,3 @@
function fix_display
xrandr --output DisplayPort-0 --mode 1920x1080 -r 143.98
end

View file

@ -0,0 +1,8 @@
function icat
if test (count $argv) -eq 0
echo "Missing required argument"
return 1
end
set ipath $argv[1]
kitty +kitten icat --align=left $ipath
end

View file

@ -0,0 +1,4 @@
function ls --wraps='exa --long --git --header --icons' --description 'alias ls=exa --long --git --header --icons'
exa --long --git --header --icons $argv
end

View file

@ -0,0 +1,4 @@
function r --wraps=ranger --description 'alias r=ranger'
ranger $argv
end

View file

@ -0,0 +1,3 @@
function sshtunnel
ssh -R 1675:ibox:22 isa@172.105.6.137
end

View file

@ -0,0 +1,4 @@
function start-ssh-agent
eval (ssh-agent -c)
ssh-add /home/isa/.ssh/id_rsa
end

View file

@ -0,0 +1,4 @@
function vim --wraps=nvim --description 'alias vim=nvim'
nvim $argv
end

View file

@ -0,0 +1,4 @@
function watch_dir
set -q argv[1]; or set argv[1] "."
watch -d=cumulative ls -a $argv[1]
end