AutoYADM commit: 2025-02-24 14:35:11

This commit is contained in:
Daniel Fichtinger 2025-02-24 14:35:12 -05:00
parent 788305bc8e
commit 02123b42a7

35
.zshrc
View file

@ -6,7 +6,7 @@ export DISABLE_LS_COLORS=true
# export MANPAGER="ov --section-delimiter '^[^\s]' --section-header" # export MANPAGER="ov --section-delimiter '^[^\s]' --section-header"
export EGET_BIN="/home/fic/.eget/bin" export EGET_BIN="/home/fic/.eget/bin"
# plugins=(ssh-agent git github zsh-autosuggestions zsh-syntax-highlighting aliases copybuffer copyfile copypath fancy-ctrl-z systemd ) # plugins=(ssh-agent git github zsh-autosuggestions zsh-syntax-highlighting aliases copybuffer copyfile copypath fancy-ctrl-z systemd )
plugins=(ssh-agent git github zsh-autosuggestions zsh-syntax-highlighting aliases colored-man-pages copybuffer copyfile copypath fancy-ctrl-z systemd ) plugins=(ssh-agent git github zsh-autosuggestions zsh-syntax-highlighting aliases colored-man-pages copybuffer copyfile copypath fancy-ctrl-z systemd)
source ~/.profile source ~/.profile
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
ASHEN="$HOME/dev/ashen/ashen.nvim" ASHEN="$HOME/dev/ashen/ashen.nvim"
@ -51,7 +51,6 @@ source ~/.config/zsh/fzf.zsh
# Not working for some reason... # Not working for some reason...
# source ~/.config/zsh/fzf-git.sh # source ~/.config/zsh/fzf-git.sh
# alias ls="eza -lh --git" # alias ls="eza -lh --git"
# alias ls="eza --long --color=always --git --header --icons --no-user" # alias ls="eza --long --color=always --git --header --icons --no-user"
# alias vlc="env -u DISPLAY vlc" # alias vlc="env -u DISPLAY vlc"
@ -98,11 +97,9 @@ alias mermaid=mmdc
alias dnd=dragon-drop alias dnd=dragon-drop
# alias cat=bat # alias cat=bat
alias autoyadm="AUTOYADMPUSH=1 ~/dev/autoyadm/autoyadm.sh" alias autoyadm="AUTOYADMPUSH=1 ~/dev/autoyadm/autoyadm.sh"
alias yadmadd="~/dev/autoyadm/yadmadd.sh" alias yadmadd="~/dev/autoyadm/yadmadd.sh"
# Created by `pipx` on 2024-09-20 02:14:00 # Created by `pipx` on 2024-09-20 02:14:00
export PATH="$PATH:/home/fic/.local/bin:/home/fic/.cargo/bin:/home/fic/go/bin" export PATH="$PATH:/home/fic/.local/bin:/home/fic/.cargo/bin:/home/fic/go/bin"
export PATH="$PATH:/home/fic/.eget/bin" export PATH="$PATH:/home/fic/.eget/bin"
@ -111,13 +108,13 @@ export PATH="$PATH:/home/fic/.luarocks/bin"
export PATH="$PATH:/home/fic/.local/share/npm/bin" export PATH="$PATH:/home/fic/.local/share/npm/bin"
fpath=(~/.zsh.d/ $fpath) fpath=(~/.zsh.d/ $fpath)
function noh() { function noh() {
nohup "$@" > /dev/null 2>&1 & nohup "$@" >/dev/null 2>&1 &
} }
function ls() { function ls() {
eza --long --color=always --git --header --icons "$@" eza --long --color=always --git --header --icons "$@"
} }
function wl-mime() { function wl-mime() {
wl-copy -t 'text/uri-list' <<< "file://$PWD/$@" wl-copy -t 'text/uri-list' <<<"file://$PWD/$@"
} }
function y() { function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
@ -136,27 +133,28 @@ print -n '\033[5 q'
function zle-keymap-select zle-line-init zle-line-finish function zle-keymap-select zle-line-init zle-line-finish
{ {
case $KEYMAP in case $KEYMAP in
vicmd) print -n '\033[1 q';; # block cursor vicmd) print -n '\033[1 q' ;; # block cursor
viins|main) print -n '\033[5 q';; # line cursor viins | main) print -n '\033[5 q' ;; # line cursor
esac esac
} }
# DISABLE_AUTO_TITLE="true" # DISABLE_AUTO_TITLE="true"
function set_win_title(){ function set_win_title() {
echo -ne "\033]0; ${PWD/#$HOME/~} \007" echo -ne "\033]0; ${PWD/#$HOME/~} \007"
} }
function viewport_osc(){ function viewport_osc() {
print -Pn "\e]133;A\e\\" print -Pn "\e]133;A\e\\"
} }
function mksh(){ function mksh() {
local path="$1.sh" local path="$1.sh"
if [[ ! -f "$path" ]]; then if [[ pathchk --portability "$path" ]]
echo '#!/bin/env bash\n\necho "Hello, World!"' >> "$path" # if [[ ! -f "$path" ]]; then
/usr/bin/chmod +x "$path" # echo '#!/bin/env bash\n\necho "Hello, World!"' >>"$path"
echo "$path created." # /usr/bin/chmod +x "$path"
else # echo "$path created."
echo "$path already exists." # else
fi # echo "$path already exists."
# fi
} }
# precmd_functions+=(set_win_title viewport_osc) # precmd_functions+=(set_win_title viewport_osc)
@ -176,4 +174,3 @@ export GPG_TTY=$(tty)
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
# colorscript -e 36 # colorscript -e 36
source ~/scripts/obsidian-bridge.sh source ~/scripts/obsidian-bridge.sh