adde latex lsp and language
This commit is contained in:
@@ -5,6 +5,7 @@ alias f='fuck'
|
||||
alias a='aerc'
|
||||
|
||||
# Scripts
|
||||
alias la='/home/liph/scripts/latex.sh'
|
||||
alias ar='/mnt/tank/scripts/aria.sh'
|
||||
alias sp='/mnt/tank/scripts/split.sh'
|
||||
alias nt='/mnt/tank/scripts/nothumb.sh'
|
||||
@@ -126,11 +127,6 @@ alias aryt="yt-dlp --external-downloader aria2c --external-downloader-args '-x 8
|
||||
alias aria='aria2c -x 8' # add URL in '' for 8 segmented download
|
||||
alias yd='yt-dlp' # copy link from videodownload helper and add the URL in ''
|
||||
|
||||
# ffmpeg
|
||||
alias ffcmp='ffmpeg -i video.mp4 -q:a 0 -map a audio.mp3' # convert on mp4 into mp3
|
||||
alias ffcbmp='for file in *.mp4; do
|
||||
ffmpeg -i "$file" -q:a 0 -map a "${file%.mp4}.mp3"
|
||||
done' # batch rename all mp4 into mp3 add -af "volume=1.5" to increase audio volume by 1.5
|
||||
alias photodetect='gphoto2 --auto-detect'
|
||||
alias photoget='gphoto2 --get-all-files'
|
||||
|
||||
|
||||
32
zshrc/.zshrc
32
zshrc/.zshrc
@@ -16,7 +16,7 @@ source ~/.plugins.zsh
|
||||
source ~/.export.zsh
|
||||
# https://github.com/jungunn/fzf-git.sh
|
||||
source ~/scripts/fzf-git.sh
|
||||
# you should unse
|
||||
# you should unse
|
||||
source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
|
||||
# Set up fzf key bindings and fuzzy completion
|
||||
source <(fzf --zsh)
|
||||
@@ -25,11 +25,11 @@ source <(fzf --zsh)
|
||||
|
||||
# env aur helper
|
||||
if command -v paru &> /dev/null; then
|
||||
export AUR_HELPER="paru"
|
||||
export AUR_HELPER="paru"
|
||||
elif command -v yay &> /dev/null; then
|
||||
export AUR_HELPER="yay"
|
||||
export AUR_HELPER="yay"
|
||||
else
|
||||
export AUR_HELPER="pacman" # Fallback to pacman
|
||||
export AUR_HELPER="pacman" # Fallback to pacman
|
||||
fi
|
||||
#export AUR_HELPER="paru"
|
||||
|
||||
@@ -67,7 +67,7 @@ setopt hist_ignore_all_dups
|
||||
setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
|
||||
|
||||
# Completion styling
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
@@ -90,7 +90,7 @@ _fzf_comprun() {
|
||||
local command=$1
|
||||
shift
|
||||
|
||||
case "$command" in
|
||||
case "$command" in
|
||||
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
|
||||
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
|
||||
ssh) fzf --preview 'dig {}' "$@" ;;
|
||||
@@ -99,21 +99,21 @@ _fzf_comprun() {
|
||||
}
|
||||
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
# Load a few important annexes, without Turbo
|
||||
# (this is currently required for annexes)
|
||||
zinit light-mode for \
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
|
||||
### End of Zinit's installer chunk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user