mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-25 03:42:52 +01:00
Compare commits
2 Commits
ff8d4a638d
...
d48a59e74b
Author | SHA1 | Date | |
---|---|---|---|
d48a59e74b | |||
597bb08e39 |
13
zsh/alias
13
zsh/alias
@ -11,9 +11,9 @@ elif [[ $platform == 'macOS' ]]; then
|
|||||||
alias bls='/bin/ls -lahG'
|
alias bls='/bin/ls -lahG'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Better exa
|
# Better eza
|
||||||
if [[ -x $(which exa) ]]; then
|
if [[ -x $(which eza) ]]; then
|
||||||
alias exa='pwd; exa --long --all --all --group-directories-first --git --group'
|
alias eza='pwd; eza --long --all --all --group-directories-first --git --group'
|
||||||
# --all (2x) to show `.` and `..` directories as well
|
# --all (2x) to show `.` and `..` directories as well
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -54,17 +54,13 @@ fi
|
|||||||
# youtube-dl(p) - Download only best MP4
|
# youtube-dl(p) - Download only best MP4
|
||||||
alias ytmp4='ydl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
|
alias ytmp4='ydl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
|
||||||
|
|
||||||
|
|
||||||
# rsync; archive, progress, partial, relative, humanreadable (add -z for compression)
|
|
||||||
alias rrsync='rsync -avhP'
|
|
||||||
|
|
||||||
# better scp
|
# better scp
|
||||||
alias bcp='rsync -avzuh --progress --partial'
|
alias bcp='rsync -avzuh --progress --partial'
|
||||||
|
|
||||||
# generate pseudo-random hash
|
# generate pseudo-random hash
|
||||||
alias random32='echo $(date +%s | md5sum | head -c 32)'
|
alias random32='echo $(date +%s | md5sum | head -c 32)'
|
||||||
|
|
||||||
# tar
|
# tar extract
|
||||||
alias untargz='tar -xzvf'
|
alias untargz='tar -xzvf'
|
||||||
|
|
||||||
# (macOS) start Firefox Profile manager
|
# (macOS) start Firefox Profile manager
|
||||||
@ -75,7 +71,6 @@ fi
|
|||||||
# zspotify (Docker)
|
# zspotify (Docker)
|
||||||
alias zspotify='docker run -v ${HOME}/.zspotify:/root/.zspotify -v ${HOME}/Music:/root/Music -it jsavargas/zspotify'
|
alias zspotify='docker run -v ${HOME}/.zspotify:/root/.zspotify -v ${HOME}/Music:/root/Music -it jsavargas/zspotify'
|
||||||
|
|
||||||
|
|
||||||
# git
|
# git
|
||||||
alias gadd='git add'
|
alias gadd='git add'
|
||||||
alias gclone='git clone'
|
alias gclone='git clone'
|
||||||
|
4
zsh/env
4
zsh/env
@ -13,8 +13,8 @@ export EDITOR="nano"
|
|||||||
|
|
||||||
# set `ll` command - b(etter)ls per default
|
# set `ll` command - b(etter)ls per default
|
||||||
alias ll=bls
|
alias ll=bls
|
||||||
if test -f "$homebrew_path/exa"; then
|
if test -f "$homebrew_path/eza"; then
|
||||||
alias ll=exa
|
alias ll=eza
|
||||||
fi
|
fi
|
||||||
if test -f "$homebrew_path/lsd"; then
|
if test -f "$homebrew_path/lsd"; then
|
||||||
alias ll=lsd
|
alias ll=lsd
|
||||||
|
Loading…
Reference in New Issue
Block a user