diff --git a/configs/.profile b/configs/.profile index 5e637d2..99b83e1 100644 --- a/configs/.profile +++ b/configs/.profile @@ -6,4 +6,5 @@ export MOZ_ENABLE_WAYLAND=1 export MOZ_DBUS_REMOTE=1 export QT_QPA_PLATFORMTHEME=qt5ct export XDG_CURRENT_DESKTOP=Unity +export HOMEBREW_NO_ENV_HINTS=false . "$HOME/.cargo/env" diff --git a/configs/.zshrc b/configs/.zshrc index 9220a09..af4eac4 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -6,7 +6,6 @@ autoload -Uz add-zsh-hook function reset_broken_terminal () { 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" @@ -48,12 +47,22 @@ alias la="ls -la" alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh" alias timestamp='date -u +%FT%TZ' 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 ." +# ffmpeg section + +# Usage: ffmpeg_convert [] + +ffmpeg_convert() { + ffmpeg -i $2 -c:v ${1}_videotoolbox $(if [ ! -z $4 ]; then echo "-q:v $4"; fi ) $3 +} + # AsahiLinux useful aliases alias reload_net="sudo systemctl restart NetworkManager wpa_supplicant" # iwd" # Diskutil aliases alias dadc="diskutil apfs deleteContainer" 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 diff --git a/configs/nvim/init.vim b/configs/nvim/init.vim index 936535f..324121e 100644 --- a/configs/nvim/init.vim +++ b/configs/nvim/init.vim @@ -23,3 +23,6 @@ Plug 'catppuccin/nvim', { 'as': 'catppuccin' } call plug#end() colorscheme catppuccin-macchiato + +autocmd BufWritePost *.tex silent! execute "!pdflatex % >/dev/null 2>&1" | redraw! +