diff --git a/vim/.vimrc b/vim/.vimrc index 1fb3dab..f3ec5f2 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,2 +1,3 @@ +:set cursorline :set relativenumber :colorscheme desert diff --git a/zsh/.oh-my-zsh/custom/aliases.zsh b/zsh/.oh-my-zsh/custom/aliases.zsh index 260f99d..ebac16a 100644 --- a/zsh/.oh-my-zsh/custom/aliases.zsh +++ b/zsh/.oh-my-zsh/custom/aliases.zsh @@ -1,3 +1,20 @@ +is_debian_based() { + # Controllo /etc/os-release + if [[ -f /etc/os-release ]]; then + . /etc/os-release + if [[ "$ID_LIKE" == *"debian"* ]] || [[ "$ID" == "debian" ]]; then + return 0 # OK: Debian-based + fi + fi + + # Controllo alternativo: /etc/debian_version + if [[ -f /etc/debian_version ]]; then + return 0 # OK: Debian-based + fi + + return 1 # NON Debian-based +} + # Alias del comando ls alias ls="eza --color=always --group-directories-first --icons" alias ll="eza -l --color=always --group-directories-first --icons" @@ -5,6 +22,10 @@ alias la="eza -a --color=always --group-directories-first --icons" alias lt="eza -aT --color=always --group-directories-first --icons" # Replace some more things with better alternatives +if is_debian_based; then + alias bat='batcat' +fi + alias cat='bat --style header --style snip --style changes --style header --pager never' # Replace df command tool