You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
armbian_config/.bash_aliases

67 lines
2.2 KiB

## youtube-dl
alias yyy='youtube-dl -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -r 500K --yes-playlist'
alias yyr='youtube-dl -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --yes-playlist'
alias yyrp='youtube-dl -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --yes-playlist --output "%%(playlist)s/(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yyyp='youtube-dl -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -r 500K --yes-playlist --output "%%(playlist)s/(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yya='youtube-dl -i --extract-audio --audio-format mp3 --yes-playlist'
alias yyap='youtube-dl -i --extract-audio --audio-format mp3 --yes-playlist --output "%%(playlist)s/(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yyf='youtube-dl -i --extract-audio --audio-format flac --yes-playlist'
alias yyfp='youtube-dl -i --extract-audio --audio-format flac --yes-playlist --output "%%(playlist)s/(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
#alias yya='youtube-dl -x --audio-format mp3 -i --yes-playlist '
## ls
alias ll='ls -AhlF '
alias lll='ls -AhlF | less '
alias la='ls -A '
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias cdf='cd /media/data/data/video/filmy/'
alias cdb='cd /media/data/data/video/biblicke/'
## vim
alias svi='sudo vim '
## aptitude
alias sau='sudo aptitude update '
alias sas='sudo aptitude safe-upgrade '
alias sar='sudo aptitude remove '
## omgf
alias gf="omgf --what-now"
#########################################################################
## funkcie
##
mcd()
{
mkdir -p "$*" && cd "$*"
}
##
un () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unar $1 ;;
*.gz) gunzip $1 ;;
*.tar) tarzxvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7zcx $1 ;;
*) echo "don't know;how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}