server_config/zsh/zsh/.zshrc

60 lines
1.2 KiB
Bash

# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle :compinstall filename '/home/julien/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
################################
# Plugins & Modules
################################
# Oh-my-zsh
plugins=(
sudo
zsh-syntax-highlighting
zsh-autosuggestions
fzf
zoxide
)
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
################################
# Env
################################
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="ys"
################################
# Aliases
################################
# Windows clear alias
alias cls="clear"
# Replace ls with exa
alias ls="eza --hyperlink --icons"
alias ll="ls --header --git -l -a"
alias lt="ll -T -I '.?*|node_module|dist'"
# Replace cat with bat
alias cat="bat --theme=gruvbox-dark"
# File previews for fzf using bat
alias fp="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'"
# Zoxide alias
alias z=zoxide
################################
# Utilities
################################
meteo() {
curl "wttr.in/${1:-"Gradignan"}?lang=fr"
}