AutoYADM commit: 2025-02-24 14:35:11
This commit is contained in:
parent
788305bc8e
commit
02123b42a7
1 changed files with 19 additions and 22 deletions
37
.zshrc
37
.zshrc
|
@ -6,7 +6,7 @@ export DISABLE_LS_COLORS=true
|
|||
# export MANPAGER="ov --section-delimiter '^[^\s]' --section-header"
|
||||
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 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 $ZSH/oh-my-zsh.sh
|
||||
ASHEN="$HOME/dev/ashen/ashen.nvim"
|
||||
|
@ -51,7 +51,6 @@ source ~/.config/zsh/fzf.zsh
|
|||
# Not working for some reason...
|
||||
# source ~/.config/zsh/fzf-git.sh
|
||||
|
||||
|
||||
# alias ls="eza -lh --git"
|
||||
# alias ls="eza --long --color=always --git --header --icons --no-user"
|
||||
# alias vlc="env -u DISPLAY vlc"
|
||||
|
@ -98,11 +97,9 @@ alias mermaid=mmdc
|
|||
alias dnd=dragon-drop
|
||||
# alias cat=bat
|
||||
|
||||
|
||||
alias autoyadm="AUTOYADMPUSH=1 ~/dev/autoyadm/autoyadm.sh"
|
||||
alias yadmadd="~/dev/autoyadm/yadmadd.sh"
|
||||
|
||||
|
||||
# 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/.eget/bin"
|
||||
|
@ -111,13 +108,13 @@ export PATH="$PATH:/home/fic/.luarocks/bin"
|
|||
export PATH="$PATH:/home/fic/.local/share/npm/bin"
|
||||
fpath=(~/.zsh.d/ $fpath)
|
||||
function noh() {
|
||||
nohup "$@" > /dev/null 2>&1 &
|
||||
nohup "$@" >/dev/null 2>&1 &
|
||||
}
|
||||
function ls() {
|
||||
eza --long --color=always --git --header --icons "$@"
|
||||
}
|
||||
function wl-mime() {
|
||||
wl-copy -t 'text/uri-list' <<< "file://$PWD/$@"
|
||||
wl-copy -t 'text/uri-list' <<<"file://$PWD/$@"
|
||||
}
|
||||
function y() {
|
||||
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
|
||||
{
|
||||
case $KEYMAP in
|
||||
vicmd) print -n '\033[1 q';; # block cursor
|
||||
viins|main) print -n '\033[5 q';; # line cursor
|
||||
vicmd) print -n '\033[1 q' ;; # block cursor
|
||||
viins | main) print -n '\033[5 q' ;; # line cursor
|
||||
esac
|
||||
}
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
function set_win_title(){
|
||||
echo -ne "\033]0; ${PWD/#$HOME/~} \007"
|
||||
function set_win_title() {
|
||||
echo -ne "\033]0; ${PWD/#$HOME/~} \007"
|
||||
}
|
||||
function viewport_osc(){
|
||||
function viewport_osc() {
|
||||
print -Pn "\e]133;A\e\\"
|
||||
}
|
||||
|
||||
function mksh(){
|
||||
function mksh() {
|
||||
local path="$1.sh"
|
||||
if [[ ! -f "$path" ]]; then
|
||||
echo '#!/bin/env bash\n\necho "Hello, World!"' >> "$path"
|
||||
/usr/bin/chmod +x "$path"
|
||||
echo "$path created."
|
||||
else
|
||||
echo "$path already exists."
|
||||
fi
|
||||
if [[ pathchk --portability "$path" ]]
|
||||
# if [[ ! -f "$path" ]]; then
|
||||
# echo '#!/bin/env bash\n\necho "Hello, World!"' >>"$path"
|
||||
# /usr/bin/chmod +x "$path"
|
||||
# echo "$path created."
|
||||
# else
|
||||
# echo "$path already exists."
|
||||
# fi
|
||||
}
|
||||
|
||||
# precmd_functions+=(set_win_title viewport_osc)
|
||||
|
@ -176,4 +174,3 @@ export GPG_TTY=$(tty)
|
|||
eval "$(direnv hook zsh)"
|
||||
# colorscript -e 36
|
||||
source ~/scripts/obsidian-bridge.sh
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue