Compare commits

..

No commits in common. "0b4061ed63a9d9d6e43b54af4c6948da8a600796" and "833c0d61683e97888ecb866e3122464e5e6eb904" have entirely different histories.

3 changed files with 29 additions and 22 deletions

View File

@ -1,11 +1,22 @@
# Color ls
alias ls='ls --color=auto'
# Run mpv from clipboard
function mpvy; mpv (xsel -b); end
alias mpvy='mpv (xsel -b)'
alias youtube-dl='youtube-dl -f "bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'
# Send screenshots to my VM
alias scr='scp ~/med/screen/latest.png boron:~'
# Set gpg tty so curses pinentry works
function gpgt; export GPG_TTY=(tty); end
alias gpgt='export GPG_TTY=(tty)'
# Remove newlines from clipboard (for competitive programming)
alias dnl='xsel -b | tr "\n" " " | xsel -ib'
# Private neovim
function nvimp; nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\""; end
alias nvimp='nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\""'
# Read pdf file as text
function pdfr
@ -13,11 +24,11 @@ function pdfr
end
# Neomutt configs
function neomutt.local; neomutt -F .config/neomutt/neomuttrc.local; end
function neomutt.disroot; neomutt -F .config/neomutt/neomuttrc.disroot; end
alias neomutt.local='neomutt -F .config/neomutt/neomuttrc.local'
alias neomutt.disroot='neomutt -F .config/neomutt/neomuttrc.disroot'
# Specific to my Gentoo system
function genlop; doas -u portage /usr/bin/genlop; end
function loginctl; doas /bin/loginctl; end
alias genlop='doas -u portage /usr/bin/genlop'
alias loginctl='doas /bin/loginctl'
function pyenv; source ~/dox/proj/ref/venv/bin/activate.fish; end
alias pyenv='source ~/dox/proj/ref/venv/bin/activate.fish'

View File

@ -1,5 +1,12 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
source ~/.config/fish/aliases.fish
source ~/.config/fish/functions/prompts.fish
source ~/.config/fish/functions/extra_prompt.fish
# Set GPG_TTY
gpgt
@ -16,11 +23,10 @@ set -gx MANPATH "$MANPATH:/home/dogeystamp/.cache/cppman/"
# Disable fish greeting
set fish_greeting ""
source ~/.config/fish/functions/prompts.fish
source ~/.config/fish/functions/extra_prompt.fish
# Enable Vi bindings
fish_hybrid_key_bindings
fish_vi_key_bindings
bind -M insert \cf accept-autosuggestion
set __fish_git_prompt_showdirtystate 1
set __fish_git_prompt_showupstream auto

View File

@ -1,10 +0,0 @@
backend = "glx"
# shadow
shadow = true;
shadow-radius = 12;
shadow-offset-x = -7;
shadow-offset-y = -7;
# fading
fading = false;