fish: Add the rest of custom config

This commit is contained in:
Harzo 2023-05-27 22:24:53 +02:00
parent 976da653c0
commit f30d769455
5 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,4 @@
function fish_greeting
neofetch --config ~/.config/neofetch/greeting.conf \
--chafa /usr/share/custom/assets/archlinux-logo.png
end

View File

@ -0,0 +1 @@
set -Ux LC_ALL $LANG

View File

@ -0,0 +1,16 @@
fish_add_path ~/.scripts
# Make square jpg (for covert art)
function pic2jsq
set -l filename (basename $argv[1])
set -l dirname (dirname $argv[1])
set -l rootname (echo $filename | string split -f 1 -m 1 -r .)
set -l targetname "$dirname/$rootname-cover.jpg"
set -l scale 1400
if [ (count $argv) -gt 1 ]
set scale $argv[2]
end
convert -verbose $argv[1] -scale (printf "%sx%s!" $scale $scale) $targetname
end

View File

@ -0,0 +1 @@
set -Ux QT_QPA_PLATFORMTHEME qt5ct

View File

@ -0,0 +1,20 @@
# Dotfiles
alias dotfiles '/usr/bin/git --git-dir=$HOME/.dotfiles/.git --work-tree=$HOME'
# Add local binaries to the path
fish_add_path ~/.local/bin
# Neovim
alias vi nvim
alias vim nvim
set -Ux EDITOR nvim
# lsd
alias ls lsd
alias l 'ls -1'
alias lc 'ls -1 --classic'
alias tree 'ls --tree'
alias t tree
# Replace htop with bottom
alias htop 'btm -b'