Update dotfiles

This commit is contained in:
Santiago Lo Coco 2025-02-24 09:45:32 +01:00
parent d5eb0781f5
commit d212de838d
Signed by: slococo
GPG Key ID: F995EFC8B68B1ADF
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh #!/bin/sh
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
alias e="$EDITOR" v="$EDITOR" alias e="$EDITOR" v="$EDITOR"
alias vim="nvim" vimdiff="nvim -d"
alias mpvgui='mpv --player-operation-mode=pseudo-gui' alias mpvgui='mpv --player-operation-mode=pseudo-gui'
alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"' alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'
alias adb='HOME="$XDG_DATA_HOME"/android adb' alias adb='HOME="$XDG_DATA_HOME"/android adb'
@ -56,16 +55,16 @@ alias trash-dir='cd $HOME/.local/share/Trash'
alias val='valgrind --leak-check=full > valgrind.output 2>&1' alias val='valgrind --leak-check=full > valgrind.output 2>&1'
alias copy='xclip -selection clipboard' alias copy='xclip -selection clipboard'
function compile() { compile() {
sudo make clean && sudo make install sudo make clean && sudo make install
} }
function rcomp() { rcomp() {
local file="${1//.rmd/}" local file="${1//.rmd/}"
R -e "rmarkdown::render('$file.rmd', 'pdf_document')" && op $file.pdf R -e "rmarkdown::render('$file.rmd', 'pdf_document')" && op $file.pdf
} }
function fcd() { fcd() {
local fd_options fzf_options target local fd_options fzf_options target
fd_options=( fd_options=(