-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
55 lines (42 loc) · 1.24 KB
/
dot_bashrc
File metadata and controls
55 lines (42 loc) · 1.24 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[ -z "$PS1" ] && return
[ -f "$HOME/.secrets" ] && . "$HOME/.secrets"
set -o vi
# Vi mode drops the default emacs Ctrl+L; restore clear-screen.
bind '"\C-l": clear-screen'
# ALIASES-START
alias ..="cd .."
alias ...="cd ../.."
alias ls="eza --group-directories-first --classify=auto --sort=extension --oneline"
alias lsa="eza --group-directories-first --classify=auto --sort=extension --oneline --all"
alias rm="rm -rf"
alias grep="rg --smart-case --glob '!{.git/*,out/*,**/node_modules/**}' --max-columns-preview"
alias cat="bat --plain --theme=base16"
alias lzg="lazygit"
alias lzd="lazydocker"
alias d="docker"
alias g="git"
alias cm="chezmoi"
alias t="tailscale"
y() {
local tmp
tmp=$(mktemp -t "yazi-cwd.XXXXXX")
yazi "$@" --cwd-file "$tmp"
local cwd
cwd=$(cat "$tmp")
if [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd "$cwd" || return
fi
rm -f "$tmp"
}
alias z="zellij"
alias zka="zellij delete-all-sessions --force --yes && zellij kill-all-sessions --yes"
alias yal="yadm list -a"
alias yag="yadm enter lazygit --work-tree ~"
# ALIASES_END
eval "$(starship init bash)"
eval "$(zoxide init --cmd cd bash)"
_zc="$(command -v zeroclaw 2>/dev/null)"
if [[ -n "$_zc" && -x "$_zc" ]]; then
eval "$("$_zc" completions bash)"
fi
unset _zc