djcev.com

//

Git Repos / dotfiles / bin / aliases.sh

Last update to this file was on 2024-01-02 at 05:12.

Show aliases.sh

#!/bin/sh
#- aliases.sh 2015/00/00, last updated 2023/08/15 cev

alias bpm="python3 $HOME/.local/bin/taptempo.py"
alias cd_info="isoinfo -RpJl -i"
# alias cmus="~/.local/bin/cmus"
# alias cr="cmus-remote"
alias d0="du -xhcd 0 * | sort -h"
# see https://gist.github.com/thebouv/8657674
alias ducks="du -hcs * | sort -hr | head -11"
# alias fetch="fetch -R"
# alias fetchmail="fetchmail -f $HOME/.config/fetchmailrc"
alias grep="grep --color=auto -n"
alias g="grep -ri"
alias h="history"
# alias hc="herbstclient"
alias hd="hexdump -C"
alias hg="history 500 | grep"
# alias history="fc -l"
alias irssi="/usr/bin/irssi --home=$HOME/.config/irssi"
alias j="jobs"
# alias ls="ls -G" # colorize output
# alias ll="ls -G -l" # long display
alias m="$PAGER"
# alias mutt="mutt -F $HOME/.config/mutt/muttrc"
alias p="$PAGER"
# alias print="vimcat"
alias pt2="pt2-clone"
alias py="python3"
alias python="python3"
alias rdp="rdesktop -a 24 -g 800x600 -k en_us"
alias s="svn"
alias shlvl="echo $SHLVL" # bash (and ksh?) only.
alias vi="vim"
alias z_df="df -h /storage2 /z/*"
#
alias back="$HOME/.local/bin/back.sh"
redshift_back="$HOME/.config/redshift/hooks/background.sh"
alias back_day="$redshift_back period-changed noop daytime"
alias back_interval="$redshift_back period-changed noop transition"
alias back_night="$redshift_back period-changed noop night"
unset redshift_back
alias cd_audio="$HOME/.local/bin/cd_audio.sh"
alias cd_crypt="$HOME/.local/bin/cd_crypt.sh"
alias cdc="$HOME/.local/bin/cd_crypt.sh"
alias flac_bpm="$HOME/.local/bin/tag_bpm.sh -f"
alias flac_cover="$HOME/.local/bin/tag_cover.sh -f"
alias flac_key="$HOME/.local/bin/tag_key.sh -f"
alias flac_reencode="$HOME/.local/bin/flac_reencode.sh"
alias flac_rg="$HOME/.local/bin/tag_rg.sh -f"
alias flac_sides='for i in a*flac; do flac_cover -c "00 side a.jpg" "$i"; done && for i in b*flac; do flac_cover -c "00 side b.jpg" "$i"; done'
alias flac_to_cbr320="$HOME/.local/bin/audio_to_cbr320.sh -f"
alias l1="$HOME/.local/bin/lc.sh -1" # colorized ls-like, single column
alias lc="$HOME/.local/bin/lc.sh" # colorized ls-like
alias mp3_bpm="$HOME/.local/bin/tag_bpm.sh -3"
alias mp3_cover="$HOME/.local/bin/tag_cover.sh -3"
alias mp3_key="$HOME/.local/bin/tag_key.sh -3"
alias mp3_rg="$HOME/.local/bin/tag_rg.sh -3"
alias mp3_to_cbr320="$HOME/.local/bin/audio_to_cbr320.sh -3"
alias mp="mpv --quiet"
alias mp43="mpv --panscan=1.0 --quiet"
alias mph="mpv --af=lavfi=[highpass=f=100] --quiet"
alias mpb="mpv --af=lavfi=[equalizer=f=50:t=h:width=200:g=-10] --quiet"
alias mpr="mpv --no-use-filedir-conf --quiet"
alias mplayer="mpv --quiet"
alias mpt="$HOME/.local/bin/mpt_single.sh"
alias scs="$HOME/.local/bin/scs4tool.sh"
alias sss="$HOME/.local/bin/sox_spectrogram.sh"
alias tag_audio="$HOME/.local/bin/tag_audio.sh"
alias tag_bpm="$HOME/.local/bin/tag_bpm.sh"
alias tag_cover="$HOME/.local/bin/tag_cover.sh"
alias tag_key="$HOME/.local/bin/tag_key.sh"
alias tag_rg="$HOME/.local/bin/tag_rg.sh"
alias toggle="$HOME/.local/bin/toggle.sh"
alias tv="$HOME/.local/bin/run_tv.sh"
alias words="$HOME/.local/bin/words.sh"
alias youtube="$HOME/.local/bin/youtube.sh"

mp3_bug() {
file --mime-type -N "$@" | /usr/bin/grep "application/octet-stream"
}

blogrep() {
grep -s "$@" /z/work/cvanderz/w/_posts/*/*
}

Return to the top of this page or return to the overview of this repo.

Log aliases.sh

Return to the top of this page or return to the overview of this repo.