Update current changes

This commit is contained in:
Ivan Bushchik 2023-03-25 11:34:13 +03:00
parent 80815991f0
commit da5af9fb94
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
3 changed files with 15 additions and 2 deletions

View file

@ -6,4 +6,5 @@ export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1 export MOZ_DBUS_REMOTE=1
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct
export XDG_CURRENT_DESKTOP=Unity export XDG_CURRENT_DESKTOP=Unity
export HOMEBREW_NO_ENV_HINTS=false
. "$HOME/.cargo/env" . "$HOME/.cargo/env"

View file

@ -6,7 +6,6 @@ autoload -Uz add-zsh-hook
function reset_broken_terminal () { function reset_broken_terminal () {
printf '%b' '\e[0m\e(B\e)0\017\e[?5l\e7\e[0;0r\e8' printf '%b' '\e[0m\e(B\e)0\017\e[?5l\e7\e[0;0r\e8'
} }
add-zsh-hook -Uz precmd reset_broken_terminal
export ZSH="$HOME/.dotfiles/zsh" export ZSH="$HOME/.dotfiles/zsh"
@ -48,12 +47,22 @@ alias la="ls -la"
alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh" alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh"
alias timestamp='date -u +%FT%TZ' alias timestamp='date -u +%FT%TZ'
alias yt-dlp-opus="yt-dlp -f 251 -x" alias yt-dlp-opus="yt-dlp -f 251 -x"
alias ffmpeg_hard="ffmpeg -hwaccel videotoolbox -c:v h264_videotoolbox"
alias ltcp="cp ~/.dotfiles/latex_template/{macros,preamble,template,letterfonts}.tex ." alias ltcp="cp ~/.dotfiles/latex_template/{macros,preamble,template,letterfonts}.tex ."
# ffmpeg section
# Usage: ffmpeg_convert <output codec (hevc or h264)> <video_in> <video_out> [<quality (1 to 100)>]
ffmpeg_convert() {
ffmpeg -i $2 -c:v ${1}_videotoolbox $(if [ ! -z $4 ]; then echo "-q:v $4"; fi ) $3
}
# AsahiLinux useful aliases # AsahiLinux useful aliases
alias reload_net="sudo systemctl restart NetworkManager wpa_supplicant" # iwd" alias reload_net="sudo systemctl restart NetworkManager wpa_supplicant" # iwd"
# Diskutil aliases # Diskutil aliases
alias dadc="diskutil apfs deleteContainer" alias dadc="diskutil apfs deleteContainer"
alias devff="diskutil eraseVolume free free" alias devff="diskutil eraseVolume free free"
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.3 # run chruby to see actual version

View file

@ -23,3 +23,6 @@ Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
call plug#end() call plug#end()
colorscheme catppuccin-macchiato colorscheme catppuccin-macchiato
autocmd BufWritePost *.tex silent! execute "!pdflatex % >/dev/null 2>&1" | redraw!