This commit is contained in:
2025-03-27 21:31:52 -04:00
parent 97bc748e1d
commit da06c26df5

View File

@@ -1,12 +1,11 @@
export EDITOR=nvim export EDITOR=nvim
export SUDO_EDITOR=nvim export SUDO_EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias ll='ls -lah' alias ll='ls -lah'
alias ff='fastfetch' alias ff='fastfetch'
alias apt='nala' alias apt='nala'
alias b='bat --paging=always'
alias t='tldrb'
alias nv='nvim' alias nv='nvim'
alias gg='lazygit' alias gg='lazygit'
alias signout='loginctl terminate-user $USER' alias signout='loginctl terminate-user $USER'
@@ -20,6 +19,12 @@ plug "zap-zsh/sudo"
plug "zsh-users/zsh-history-substring-search" plug "zsh-users/zsh-history-substring-search"
plug "Aloxaf/fzf-tab" plug "Aloxaf/fzf-tab"
if ls --color=auto &>/dev/null; then
alias ls='ls -p --color=auto'
else
alias ls='ls -p -G'
fi
autoload -Uz compinit autoload -Uz compinit
compinit compinit
@@ -36,24 +41,15 @@ export COLORTERM=truecolor
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
function take() { take() {
mkdir $1 && cd $1 mkdir $1 && cd $1
} }
function retake() {
rm -rf $1 && mkdir $1 && cd $1
}
function clip() { clip() {
cat $1 | clip.exe cat $1 | clip.exe
} }
function y() { alias hl='rg --passthru'
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd alias gerp='rg'
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
if [ "$TMUX" = "" ]; then tmux; fi if [ "$TMUX" = "" ]; then tmux; fi