Update dotfiles/.local/aliases, dotfiles/.local/functions, dotfiles/.zshrc
This commit is contained in:
parent
9484e7d36f
commit
a9423aee9a
3 changed files with 7 additions and 11 deletions
|
@ -9,9 +9,6 @@ alias connections='nm-connection-editor'
|
||||||
# Make copy command verbose
|
# Make copy command verbose
|
||||||
alias cp='cp -v'
|
alias cp='cp -v'
|
||||||
|
|
||||||
# Copies with a progress bar
|
|
||||||
alias cpv='rsync -ah --info=progress2'
|
|
||||||
|
|
||||||
# Command-line DNS utility
|
# Command-line DNS utility
|
||||||
alias dog="docker run -it --rm dog"
|
alias dog="docker run -it --rm dog"
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,11 @@ cl() {
|
||||||
ls -F --color=auto
|
ls -F --color=auto
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Safer cp with progress bar and backup to /tmp
|
||||||
|
cpv() {
|
||||||
|
rsync -pogbr -hhh --backup-dir="/tmp/rsync-${USERNAME}" -e /dev/null --progress "$@"
|
||||||
|
}
|
||||||
|
|
||||||
# Checks status of a website on downforeveryoneorjustme.com
|
# Checks status of a website on downforeveryoneorjustme.com
|
||||||
down4me() {
|
down4me() {
|
||||||
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'
|
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'
|
||||||
|
|
|
@ -250,21 +250,18 @@ esac
|
||||||
# eval "$(gdircolors -b "$HOME/.config/dircolors")"
|
# eval "$(gdircolors -b "$HOME/.config/dircolors")"
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
### Backup aliases (so oh-my-zsh does not apply any aliases)
|
|
||||||
save_aliases=$(alias -L)
|
|
||||||
|
|
||||||
### Antigen
|
### Antigen
|
||||||
if [ -f "$HOME/.local/antigen.zsh" ]; then
|
if [ -f "$HOME/.local/antigen.zsh" ]; then
|
||||||
source "$HOME/.local/antigen.zsh"
|
source "$HOME/.local/antigen.zsh"
|
||||||
fi
|
fi
|
||||||
if command -v antigen > /dev/null; then
|
if command -v antigen > /dev/null; then
|
||||||
|
alias alias=true
|
||||||
antigen use oh-my-zsh
|
antigen use oh-my-zsh
|
||||||
antigen bundle adb
|
antigen bundle adb
|
||||||
antigen bundle colored-man-pages
|
antigen bundle colored-man-pages
|
||||||
antigen bundle command-not-found
|
antigen bundle command-not-found
|
||||||
antigen bundle copyfile
|
antigen bundle copyfile
|
||||||
antigen bundle copybuffer
|
antigen bundle copybuffer
|
||||||
antigen bundle cp
|
|
||||||
antigen bundle docker
|
antigen bundle docker
|
||||||
antigen bundle docker-compose
|
antigen bundle docker-compose
|
||||||
antigen bundle encode64
|
antigen bundle encode64
|
||||||
|
@ -306,12 +303,9 @@ if command -v antigen > /dev/null; then
|
||||||
antigen bundle marlonrichert/zsh-autocomplete@main
|
antigen bundle marlonrichert/zsh-autocomplete@main
|
||||||
antigen theme romkatv/powerlevel10k
|
antigen theme romkatv/powerlevel10k
|
||||||
antigen apply
|
antigen apply
|
||||||
|
unalias alias
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Clear oh-my-zsh aliases
|
|
||||||
eval $save_aliases
|
|
||||||
unset save_aliases
|
|
||||||
|
|
||||||
### ZSH Autocomplete
|
### ZSH Autocomplete
|
||||||
zstyle ':autocomplete:*' list-lines 14
|
zstyle ':autocomplete:*' list-lines 14
|
||||||
zstyle ':autocomplete:history-search:*' list-lines 14
|
zstyle ':autocomplete:history-search:*' list-lines 14
|
||||||
|
|
Loading…
Reference in a new issue