Update multiple things

This commit is contained in:
Justin Lin
2022-08-07 10:18:14 +08:00
parent 8275315dc9
commit 4557f2e97f
16 changed files with 140 additions and 24 deletions

View File

@@ -1,5 +1,4 @@
#!/bin/sh
# Use neovim for vim if present.
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
@@ -21,6 +20,8 @@ alias \
yt="yt-dlp --embed-metadata -i" \
yta="yt -x -f bestaudio/best" \
ffmpeg="ffmpeg -hide_banner"
xclip="xclip -selection clipboard"
dig="drill"
# Colorize commands when possible.
alias \

View File

@@ -12,3 +12,8 @@ pp ${XDG_PICTURES_DIR:-$HOME/Pictures}
sc $HOME/.local/bin
src $HOME/src
vv ${XDG_VIDEOS_DIR:-$HOME/Videos}
idx $HOME/src/indexer
lg $HOME/Notes/ledger
api $HOME/src/api
app $HOME/src/app-like-co
sp $HOME/src/likenft-sample

View File

@@ -5,6 +5,7 @@ bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-files # This file, a list of bookm
bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs # A list of bookmarked directories similar to this file
cfx ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources # Colors, themes and variables for X11
cfb ~/.local/src/dwmblocks/config.h # dwmblocks: the status bar for dwm
lgv $HOME/Notes/ledger/wancat.txt
# These do not update automatically, but on the next new instance of a program:

View File

@@ -6,7 +6,7 @@
# to clean up.
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}:~/.local/share/go/bin"
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}:$HOME/.local/share/go/bin"
unsetopt PROMPT_SP

36
.config/shell/shortcutrc Normal file
View File

@@ -0,0 +1,36 @@
# vim: filetype=sh
alias cac="cd /home/wancat/.cache && ls -a" \
cf="cd /home/wancat/.config && ls -a" \
D="cd /home/wancat/Downloads && ls -a" \
d="cd /home/wancat/Documents && ls -a" \
dt="cd /home/wancat/.local/share && ls -a" \
rr="cd /home/wancat/.local/src && ls -a" \
h="cd /home/wancat && ls -a" \
m="cd /home/wancat/Music && ls -a" \
mn="cd /mnt && ls -a" \
pp="cd /home/wancat/Pictures && ls -a" \
sc="cd /home/wancat/.local/bin && ls -a" \
src="cd /home/wancat/src && ls -a" \
vv="cd /home/wancat/Videos && ls -a" \
idx="cd /home/wancat/src/indexer && ls -a" \
lg="cd /home/wancat/Notes/ledger && ls -a" \
api="cd /home/wancat/src/api && ls -a" \
app="cd /home/wancat/src/app-like-co && ls -a" \
sp="cd /home/wancat/src/likenft-sample && ls -a" \
bf="$EDITOR /home/wancat/.config/shell/bm-files" \
bd="$EDITOR /home/wancat/.config/shell/bm-dirs" \
cfx="$EDITOR /home/wancat/.config/x11/xresources" \
cfb="$EDITOR ~/.local/src/dwmblocks/config.h" \
lgv="$EDITOR /home/wancat/Notes/ledger/wancat.txt" \
cfv="$EDITOR /home/wancat/.config/nvim/init.vim" \
cfz="$EDITOR /home/wancat/.config/zsh/.zshrc" \
cfa="$EDITOR /home/wancat/.config/shell/aliasrc" \
cfp="$EDITOR /home/wancat/.config/shell/profile" \
cfm="$EDITOR /home/wancat/.config/mutt/muttrc" \
cfn="$EDITOR /home/wancat/.config/newsboat/config" \
cfu="$EDITOR /home/wancat/.config/newsboat/urls" \
cfmb="$EDITOR /home/wancat/.config/ncmpcpp/bindings" \
cfmc="$EDITOR /home/wancat/.config/ncmpcpp/config" \
cfl="$EDITOR /home/wancat/.config/lf/lfrc" \
cfL="$EDITOR /home/wancat/.config/lf/scope" \
cfX="$EDITOR /home/wancat/.config/sxiv/exec/key-handler" \

View File

@@ -0,0 +1,35 @@
hash -d cac=/home/wancat/.cache
hash -d cf=/home/wancat/.config
hash -d D=/home/wancat/Downloads
hash -d d=/home/wancat/Documents
hash -d dt=/home/wancat/.local/share
hash -d rr=/home/wancat/.local/src
hash -d h=/home/wancat
hash -d m=/home/wancat/Music
hash -d mn=/mnt
hash -d pp=/home/wancat/Pictures
hash -d sc=/home/wancat/.local/bin
hash -d src=/home/wancat/src
hash -d vv=/home/wancat/Videos
hash -d idx=/home/wancat/src/indexer
hash -d lg=/home/wancat/Notes/ledger
hash -d api=/home/wancat/src/api
hash -d app=/home/wancat/src/app-like-co
hash -d sp=/home/wancat/src/likenft-sample
hash -d bf=/home/wancat/.config/shell/bm-files
hash -d bd=/home/wancat/.config/shell/bm-dirs
hash -d cfx=/home/wancat/.config/x11/xresources
hash -d cfb=~/.local/src/dwmblocks/config.h
hash -d lgv=/home/wancat/Notes/ledger/wancat.txt
hash -d cfv=/home/wancat/.config/nvim/init.vim
hash -d cfz=/home/wancat/.config/zsh/.zshrc
hash -d cfa=/home/wancat/.config/shell/aliasrc
hash -d cfp=/home/wancat/.config/shell/profile
hash -d cfm=/home/wancat/.config/mutt/muttrc
hash -d cfn=/home/wancat/.config/newsboat/config
hash -d cfu=/home/wancat/.config/newsboat/urls
hash -d cfmb=/home/wancat/.config/ncmpcpp/bindings
hash -d cfmc=/home/wancat/.config/ncmpcpp/config
hash -d cfl=/home/wancat/.config/lf/lfrc
hash -d cfL=/home/wancat/.config/lf/scope
hash -d cfX=/home/wancat/.config/sxiv/exec/key-handler