dotfiles/_src.posix/private_dot_config/sz.env/aliases.env.tmpl

25 lines
625 B
Cheetah
Raw Normal View History

2024-09-19 04:31:48 +00:00
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
2025-04-02 16:32:53 +00:00
{{- if eq .chezmoi.os "darwin" }}
alias l='ls -lahF --color=auto '
alias lold='l -t '
alias lnew='l -tr '
{{ else }}
2024-11-25 02:53:34 +00:00
alias l='ls -lahF --color=auto --group-directories-first '
2024-09-19 04:31:48 +00:00
alias lold='l --sort=time '
alias lnew='l --sort=time --reverse '
2025-04-02 16:32:53 +00:00
{{- end }}
2024-11-25 02:53:34 +00:00
alias ll='l -A'
2025-04-02 16:32:53 +00:00
alias lu='l -U '
2024-09-19 04:31:48 +00:00
alias sudo='sudo '
2025-03-12 14:27:27 +00:00
is_cmd nvim \
2025-04-02 16:32:53 +00:00
&& export VISUAL="nvim" EDITOR="nvim" \
2025-03-12 14:27:27 +00:00
&& alias nvim='POSTFIX_BUITINS=1 command nvim -p ' \
|| alias nvim='POSTFIX_BUITINS=1 command vim -p '
alias vi='nvim '
alias vim='nvim '
alias nvimdiff='nvim -d '
alias vimdiff='nvimdiff '