Migrate to chezmoi

Move config files from config to chezmoi
Add script to auto install packages with DNF and Cargo
This commit is contained in:
Alexander Navarro 2024-03-01 20:25:09 -03:00
parent 110e0882c6
commit 224c7ed45c
1654 changed files with 470035 additions and 51 deletions

View file

@ -0,0 +1,51 @@
#--------------------------------------------------------------------#
# Aliases #
#--------------------------------------------------------------------#
#fix obvious typo's
alias pdw="pwd"
# File Managment
alias \
cp='cp -iv' \
mv='mv -iv' \
cpr='rsync -za --partial -hh --info=progress2' \
mvr='rsync -za --remove-source-files --partial -hh --info=progress2' \
sync='rsync -zau --delete --partial -hh --info=progress2' \
del='trash -i' \
rmf='rm -rfI' \
md='mkdir -pv' \
ls='eza -lh --color=always --icons --git ' \
la='eza -alh --color=always --icons --git ' \
ld='eza -la --no-permissions --no-filesize --no-time --no-time --no-user' \
mkexec='chmod +x'
# Search and Query Files
alias grep="rg --sort path --context 3"
# Quicly update Stuff
alias vi-ssh="vi ~/.ssh/config"
# Query Stuff
alias \
ip='ip -human -color -brief addr' \
df="duf --hide special --hide-mp '/boot,/boot/*'" \
du='dust --reverse' \
du1='dust --reverse --min-size 1M --depth 1' \
du2='dust --reverse --min-size 1M --depth 2' \
du3='dust --reverse --min-size 1M --depth 3' \
cat='bat'
# Misc
alias \
reload='exec $SHELL -l'
# Specific Mac overrides
if [[ "$OSTYPE" != 'linux-gnu' ]]; then
fi
#--------------------------------------------------------------------#
# Global #
#--------------------------------------------------------------------#
alias -g NULL='> /dev/null 2>&1'

View file

@ -0,0 +1,3 @@
alias \
ckb='cd ~/qmk_firmware && $EDITOR keyboards/sofle/keymaps/aleee-idk' \
dots='cd $DOTS && $EDITOR'

View file

@ -0,0 +1,26 @@
if [[ "$OSTYPE" != 'linux-gnu' ]]; then
return
fi
# Auto-generated aliases for Flatpak applications
alias pikabackup='flatpak run org.gnome.World.PikaBackup'
alias gdmsettings='flatpak run io.github.realmazharhussain.GdmSettings'
alias detwinner='flatpak run com.neatdecisions.Detwinner'
alias czkawka='flatpak run com.github.qarmin.czkawka'
alias signal='flatpak run org.signal.Signal'
alias librewolf-community='flatpak run io.gitlab.librewolf-community'
alias studio='flatpak run io.beekeeperstudio.Studio'
alias client='flatpak run com.spotify.Client'
alias slack='flatpak run com.slack.Slack'
alias browser='flatpak run com.brave.Browser'
alias syncthingtk='flatpak run me.kozec.syncthingtk'
alias amberol='flatpak run io.bassi.Amberol'
alias celeste='flatpak run com.hunterwittenborn.Celeste'
alias flatseal='flatpak run com.github.tchx84.Flatseal'
alias megasync='flatpak run nz.mega.MEGAsync'
alias guiscrcpy='flatpak run in.srev.guiscrcpy'
alias kid3='flatpak run org.kde.kid3'
alias jellyfin-media-player='flatpak run com.github.iwalton3.jellyfin-media-player'
alias junction='flatpak run re.sonny.Junction'
alias ncspot='flatpak run io.github.hrkfdn.ncspot -c ~/.config/ncspot/config.toml'

View file

@ -0,0 +1,2 @@
alias \
fzf-fp='fzf-flatpak-install-widget';

View file

@ -0,0 +1,19 @@
alias \
glf='git log -p --' \
gs='git status' \
ga='git add' \
gp='git push' \
gpo='git push origin' \
gtd='git tag --delete' \
gtdr='git tag --delete origin' \
gr='git branch -r' \
gplo='git pull origin' \
gb='git branch ' \
gc='git commit' \
gd='git diff' \
gco='git checkout ' \
gl='git log' \
gr='git remote' \
grs='git remote show' \
glo='git log --pretty="oneline"' \
glol='git log --graph --oneline --decorate'

View file

@ -0,0 +1,24 @@
alias \
vi='nvim' \
vi-astro='NVIM_APPNAME=Distro-AstroNvim nvim' \
vi-lazy='NVIM_APPNAME=LazyVim nvim'
vis() {
items=(
default
AstroNvim
LazyVim
)
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config  " --height=~50% --layout=reverse --border --exit-0)
if [[ -z $config ]]; then
echo "Nothing selected"
return 0
elif [[ $config == "default" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim $@
}
bindkey -s ^a "vis\n"

View file

@ -0,0 +1,47 @@
alias p='pnpm'
# Dependencies
alias pa='pnpm add'
alias pad='pnpm add --save-dev'
alias pap='pnpm add --save-peer'
alias prm='pnpm remove'
alias pin='pnpm install'
alias pls='pnpm list'
alias pu='pnpm update'
alias puil='pnpm update --interactive --latest'
# Global dependencies
alias pga='pnpm add --global'
alias pgls='pnpm list --global'
alias pgrm='pnpm remove --global'
alias pgu='pnpm update --global'
# WorkSpace
alias pwa='pnpm add --workspace'
alias pwls='pnpm list --workspace'
alias pwrm='pnpm remove --workspace'
alias pwu='pnpm update --workspace'
# Run scripts
alias prun='pnpm run'
alias pd='pnpm run dev'
alias pb='pnpm run build'
alias psv='pnpm run serve'
alias pst='pnpm start'
alias pt='pnpm test'
alias ptc='pnpm test --coverage'
alias pln='pnpm run lint'
alias pdocs='pnpm run docs'
alias pex='pnpm exec'
alias pdx='pnpm dlx'
# Misc
alias pi='pnpm init'
alias ppub='pnpm publish'
alias pc='pnpm create'
# Monorepo
alias pf='pnpm -r --filter'
# qwik
alias pre='pnpm run preview'

View file

@ -0,0 +1,2 @@
alias \
sb-list='ostree remote refs fedora | grep "[0-9]\{2\}\/x86_64\/[a-z]\+$"'