ZSH-Config/.aliases
2024-04-23 22:20:33 -06:00

43 lines
694 B
Bash

#! /usr/bin/env zsh
nixos_config="$HOME/nixos-config/hosts/nixos/configuration.nix"
if [ -f "$nixos_config" ]; then
alias edit_config="${EDITOR:-vim} $nixos_config"
fi
unset nixos_config
if [ "$TERM" = 'xterm-kitty' ]; then
alias ssh='kitty +kitten ssh'
alias clear='printf "\033c"'
fi
alias grep='grep --color=auto'
if command -v eza &> /dev/null; then
alias ls='eza --icons=auto --group-directories-first'
else
alias ls='ls --color=auto'
fi
alias nv='nvim'
alias nvd='nvim .'
alias nvc='nvim -c "edit \$MYVIMRC"'
alias c='clear'
alias e='echo'
alias pf='printf'
alias nf='neofetch'
alias :q='exit'
alias :wq='exit'
bindkey -s '^o' 'lfcd\n'
bindkey -s '^n' 'nvd\n'