### 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 # Affichage de neofetch à la connexion #alias neofetch='neofetch --config /home/${USER}/.config/neofetch/.neofetch.conf --source /home/${USER}/.config/neofetch/#ASCII/harrypotter.txt --ascii_distro garuda' # 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 ## ALIAS ## # neofetch alias neofetch='neofetch --config /home/${USER}/.config/neofetch/.neofetch.conf' # 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