-
Notifications
You must be signed in to change notification settings - Fork 3
/
aliases
27 lines (22 loc) · 966 Bytes
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# vim: set ft=zsh:
# aliases that is should be available for non-interactive shell too
# convenient way to examine current and possible newer zsh versions installed
alias version='echo -n "current shell: "
print ${ZSH_VERSION}
echo -n \$\("which zsh) = $(/usr/bin/which zsh): "
zsh --version'
# exa
alias exa="exa --icons --group-directories-first -F --ignore-glob='**/.git|**/.DS_Store'"
alias ls="exa"
alias l="ls -lah -g --git"
alias lt="ls -lah -T -L=3 --git --git-ignore"
alias tree="exa -G -T --git-ignore"
# make ed slightly friendlier
alias ed="ed -p '> '"
# use hired in place of ed when available
test -n "${commands[hired]}" && alias ed="hired -nl"
# quick way to attach to tmux and zellij
alias tmux-attach="${my_dot_d}/bin/tmux-attach-or-new.sh"
alias exec-tmux-attach="exec ${my_dot_d}/bin/tmux-attach-or-new.sh"
alias zellij-attach="${my_dot_d}/bin/zellij-attach-or-new.sh"
alias exec-zellij-attach="exec ${my_dot_d}/bin/zellij-attach-or-new.sh"