mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-21 23:55:07 +03:00
Update current changes
This commit is contained in:
parent
80815991f0
commit
da5af9fb94
3 changed files with 15 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue