60 lines
2.4 KiB
Bash
60 lines
2.4 KiB
Bash
### POWER10K
|
|
# https://github.com/romkatv/powerlevel10k
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme
|
|
#typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
|
|
|
# zsh_autocompletion
|
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#808080"
|
|
|
|
# zsh-syntax-highlighting
|
|
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
# history
|
|
# history
|
|
HISTFILE=~/.zsh_history
|
|
HISTSIZE=1000
|
|
SAVEHIST=1000
|
|
|
|
## ALIAS ##
|
|
|
|
# fastfetch
|
|
alias fastfetch='fastfetch -l /home/${USER}/.config/fastfetch/ASCII/gandalf.txt --color white'
|
|
|
|
# exa
|
|
alias ls="exa --icons --sort=type" # short, multi-line
|
|
alias lsa="exa -a --icons --sort=type" # short, multi-line
|
|
alias ll="exa -1a --icons --sort=type" # list, 1 per line
|
|
alias ld="ll --icons --sort=type" # ^^^, NOTE: Trying to move to this for alternate hand commands
|
|
alias la="exa -lagh --icons --sort=type" # list with info
|
|
alias lt="exa -a --tree --icons --level= --sort=type" # list with tree level 2
|
|
alias ltf="exa -a --tree --icons --sort=type" # list with tree
|
|
alias lat="exa -lagh --tree --icons --sort=type" # list with info and tree
|
|
|
|
# bat
|
|
alias cat='batcat --style="header" --paging=never'
|
|
alias catn='batcat --pager "less -RF"'
|
|
alias batn='batcat --pager "less -RF"'
|
|
|
|
# btop
|
|
alias top="btop --utf-force"
|
|
alias btop="btop --utf-force"
|
|
alias htop="btop --utf-force"
|
|
|
|
# docker
|
|
# alias dstatus='docker ps -a --format "table {{.Names}} \t {{.Status}} \t {{.Size}}"' # Status des conteneurs
|
|
alias dstatus='python3 ~/.scripts/DockerStatus.py'
|
|
alias dls='docker container ls' # Lister les containers actifs
|
|
alias dlsa='docker container ls -a' #Liste les containers actifs et ceux arrêtés
|
|
alias dstpall='docker container stop $(docker container ls -aq)' # Stop tous les containers
|
|
alias drmall='docker container rm $(docker container ls -aq)' # Supprimer tous les containers
|
|
alias dils='docker image list' # Lister les images
|
|
alias diprall='docker image prune --all' # Supprimer toutes les images non utilisées
|
|
alias dbuild='docker image build -t' # Créer un build
|
|
alias dlogs='docker logs -ft --details' # Lire les logs en direct
|
|
|