75 lines
1.5 KiB
Bash
75 lines
1.5 KiB
Bash
# The following lines were added by compinstall
|
|
zstyle ':completion:*' completer _complete _ignored _approximate
|
|
zstyle :compinstall filename "$HOME/.zshrc"
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
|
|
################################
|
|
# Update path
|
|
################################
|
|
|
|
PATH=$PATH:/usr/games
|
|
|
|
################################
|
|
# Webinstall.dev install
|
|
################################
|
|
|
|
source ~/.config/envman/PATH.env
|
|
|
|
################################
|
|
# Env
|
|
################################
|
|
|
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
ZSH_THEME="ys"
|
|
|
|
################################
|
|
# 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
|
|
|
|
################################
|
|
# 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'"
|
|
|
|
# Alias batcat as bat if needed
|
|
alias bat="batcat"
|
|
|
|
# Replace cat with bat
|
|
alias cat="bat --theme=gruvbox-dark"
|
|
|
|
# File previews for fzf using bat
|
|
alias fp="fzf --preview 'batcat --style=numbers --color=always --line-range :500 {}'"
|
|
|
|
# Init zoxide
|
|
eval "$(zoxide init zsh)"
|
|
|
|
################################
|
|
# Utilities
|
|
################################
|
|
|
|
meteo() {
|
|
curl "wttr.in/${1:-"Gradignan"}?lang=fr"
|
|
}
|