From ff6de15e6749f47734d598233ac99246bf594c7b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 26 Feb 2025 20:30:04 -0500 Subject: [PATCH] AutoYADM commit: 2025-02-26 20:30:04 --- .config/fish/config.fish | 8 +++++ .config/fish/fish_variables | 38 +++++++++++++++++++++ .config/fish/functions/autosshtunnel.fish | 4 +++ .config/fish/functions/c.fish | 3 ++ .config/fish/functions/cat.fish | 4 +++ .config/fish/functions/cl.fish | 4 +++ .config/fish/functions/copy_file.fish | 3 ++ .config/fish/functions/fix_display.fish | 3 ++ .config/fish/functions/icat.fish | 8 +++++ .config/fish/functions/ls.fish | 4 +++ .config/fish/functions/r.fish | 4 +++ .config/fish/functions/sshtunnel.fish | 3 ++ .config/fish/functions/start-ssh-agent.fish | 4 +++ .config/fish/functions/vim.fish | 4 +++ .config/fish/functions/watch_dir.fish | 4 +++ 15 files changed, 98 insertions(+) create mode 100644 .config/fish/config.fish create mode 100644 .config/fish/fish_variables create mode 100644 .config/fish/functions/autosshtunnel.fish create mode 100644 .config/fish/functions/c.fish create mode 100644 .config/fish/functions/cat.fish create mode 100644 .config/fish/functions/cl.fish create mode 100644 .config/fish/functions/copy_file.fish create mode 100644 .config/fish/functions/fix_display.fish create mode 100644 .config/fish/functions/icat.fish create mode 100644 .config/fish/functions/ls.fish create mode 100644 .config/fish/functions/r.fish create mode 100644 .config/fish/functions/sshtunnel.fish create mode 100644 .config/fish/functions/start-ssh-agent.fish create mode 100644 .config/fish/functions/vim.fish create mode 100644 .config/fish/functions/watch_dir.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 00000000..b01033bd --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,8 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end + +thefuck --alias | source +set -x PATH $HOME/.local/bin $PATH +# set -Ux TERM xterm-256color +# set -gx TERM xterm-256color diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 00000000..57a39a34 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,38 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR EDITOR:hx +SETUVAR --export TERM:xterm\x2d256color +SETUVAR __fish_initialized:3400 +SETUVAR cac_ip:172\x2e30\x2e90\x2e10 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_greeting: +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_user_paths:/usr/local/bin +SETUVAR linode_ip:172\x2e105\x2e6\x2e137 +SETUVAR wtw_ip:143\x2e198\x2e33\x2e56 diff --git a/.config/fish/functions/autosshtunnel.fish b/.config/fish/functions/autosshtunnel.fish new file mode 100644 index 00000000..69114933 --- /dev/null +++ b/.config/fish/functions/autosshtunnel.fish @@ -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 diff --git a/.config/fish/functions/c.fish b/.config/fish/functions/c.fish new file mode 100644 index 00000000..6467ad56 --- /dev/null +++ b/.config/fish/functions/c.fish @@ -0,0 +1,3 @@ +function c + clear +end diff --git a/.config/fish/functions/cat.fish b/.config/fish/functions/cat.fish new file mode 100644 index 00000000..774b959a --- /dev/null +++ b/.config/fish/functions/cat.fish @@ -0,0 +1,4 @@ +function cat --wraps=bat --description 'alias cat=bat' + bat $argv + +end diff --git a/.config/fish/functions/cl.fish b/.config/fish/functions/cl.fish new file mode 100644 index 00000000..d214bdca --- /dev/null +++ b/.config/fish/functions/cl.fish @@ -0,0 +1,4 @@ +function cl +cd $argv +ls +end diff --git a/.config/fish/functions/copy_file.fish b/.config/fish/functions/copy_file.fish new file mode 100644 index 00000000..123d585b --- /dev/null +++ b/.config/fish/functions/copy_file.fish @@ -0,0 +1,3 @@ +function copy +xclip -sel clip < $argv +end diff --git a/.config/fish/functions/fix_display.fish b/.config/fish/functions/fix_display.fish new file mode 100644 index 00000000..f40c9916 --- /dev/null +++ b/.config/fish/functions/fix_display.fish @@ -0,0 +1,3 @@ +function fix_display +xrandr --output DisplayPort-0 --mode 1920x1080 -r 143.98 +end diff --git a/.config/fish/functions/icat.fish b/.config/fish/functions/icat.fish new file mode 100644 index 00000000..3f309817 --- /dev/null +++ b/.config/fish/functions/icat.fish @@ -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 diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish new file mode 100644 index 00000000..9ee42a49 --- /dev/null +++ b/.config/fish/functions/ls.fish @@ -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 diff --git a/.config/fish/functions/r.fish b/.config/fish/functions/r.fish new file mode 100644 index 00000000..50a5b404 --- /dev/null +++ b/.config/fish/functions/r.fish @@ -0,0 +1,4 @@ +function r --wraps=ranger --description 'alias r=ranger' + ranger $argv + +end diff --git a/.config/fish/functions/sshtunnel.fish b/.config/fish/functions/sshtunnel.fish new file mode 100644 index 00000000..287437b2 --- /dev/null +++ b/.config/fish/functions/sshtunnel.fish @@ -0,0 +1,3 @@ +function sshtunnel +ssh -R 1675:ibox:22 isa@172.105.6.137 +end diff --git a/.config/fish/functions/start-ssh-agent.fish b/.config/fish/functions/start-ssh-agent.fish new file mode 100644 index 00000000..4bc03e74 --- /dev/null +++ b/.config/fish/functions/start-ssh-agent.fish @@ -0,0 +1,4 @@ +function start-ssh-agent +eval (ssh-agent -c) +ssh-add /home/isa/.ssh/id_rsa +end diff --git a/.config/fish/functions/vim.fish b/.config/fish/functions/vim.fish new file mode 100644 index 00000000..af1b5818 --- /dev/null +++ b/.config/fish/functions/vim.fish @@ -0,0 +1,4 @@ +function vim --wraps=nvim --description 'alias vim=nvim' + nvim $argv + +end diff --git a/.config/fish/functions/watch_dir.fish b/.config/fish/functions/watch_dir.fish new file mode 100644 index 00000000..7ad1b843 --- /dev/null +++ b/.config/fish/functions/watch_dir.fish @@ -0,0 +1,4 @@ +function watch_dir +set -q argv[1]; or set argv[1] "." +watch -d=cumulative ls -a $argv[1] +end