AutoYADM commit: 2025-02-26 20:30:04
This commit is contained in:
parent
63bd4afb06
commit
ff6de15e67
15 changed files with 98 additions and 0 deletions
4
.config/fish/functions/autosshtunnel.fish
Normal file
4
.config/fish/functions/autosshtunnel.fish
Normal 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
|
3
.config/fish/functions/c.fish
Normal file
3
.config/fish/functions/c.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function c
|
||||
clear
|
||||
end
|
4
.config/fish/functions/cat.fish
Normal file
4
.config/fish/functions/cat.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function cat --wraps=bat --description 'alias cat=bat'
|
||||
bat $argv
|
||||
|
||||
end
|
4
.config/fish/functions/cl.fish
Normal file
4
.config/fish/functions/cl.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function cl
|
||||
cd $argv
|
||||
ls
|
||||
end
|
3
.config/fish/functions/copy_file.fish
Normal file
3
.config/fish/functions/copy_file.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function copy
|
||||
xclip -sel clip < $argv
|
||||
end
|
3
.config/fish/functions/fix_display.fish
Normal file
3
.config/fish/functions/fix_display.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function fix_display
|
||||
xrandr --output DisplayPort-0 --mode 1920x1080 -r 143.98
|
||||
end
|
8
.config/fish/functions/icat.fish
Normal file
8
.config/fish/functions/icat.fish
Normal 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
|
4
.config/fish/functions/ls.fish
Normal file
4
.config/fish/functions/ls.fish
Normal 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
|
4
.config/fish/functions/r.fish
Normal file
4
.config/fish/functions/r.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function r --wraps=ranger --description 'alias r=ranger'
|
||||
ranger $argv
|
||||
|
||||
end
|
3
.config/fish/functions/sshtunnel.fish
Normal file
3
.config/fish/functions/sshtunnel.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function sshtunnel
|
||||
ssh -R 1675:ibox:22 isa@172.105.6.137
|
||||
end
|
4
.config/fish/functions/start-ssh-agent.fish
Normal file
4
.config/fish/functions/start-ssh-agent.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function start-ssh-agent
|
||||
eval (ssh-agent -c)
|
||||
ssh-add /home/isa/.ssh/id_rsa
|
||||
end
|
4
.config/fish/functions/vim.fish
Normal file
4
.config/fish/functions/vim.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function vim --wraps=nvim --description 'alias vim=nvim'
|
||||
nvim $argv
|
||||
|
||||
end
|
4
.config/fish/functions/watch_dir.fish
Normal file
4
.config/fish/functions/watch_dir.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function watch_dir
|
||||
set -q argv[1]; or set argv[1] "."
|
||||
watch -d=cumulative ls -a $argv[1]
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue