-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdot_alias.zshrc
More file actions
82 lines (68 loc) · 2.12 KB
/
dot_alias.zshrc
File metadata and controls
82 lines (68 loc) · 2.12 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#-----------------------------------------------------------
# @raisedadead's config files
# Copyright: Mrugesh Mohapatra <https://mrugesh.dev>
# License: ISC
#
# File name: .alias.zshrc
#-----------------------------------------------------------
#-----------------------------
# cat
#-----------------------------
can_haz bat && alias cat="bat"
#-----------------------------
# Other Git aliases
#----------------------------
alias gti="git"
alias got="git"
alias gut="git"
#----------------------------
# LazyGit
#----------------------------
can_haz lazygit && alias g="lazygit"
#----------------------------
# LazyDocker
#----------------------------
can_haz lazydocker && alias d="lazydocker"
#----------------------------
# Claude
#----------------------------
alias c="claude --dangerously-skip-permissions"
#-----------------------------
# VM lists from Azure and DO
#-----------------------------
alias dovms="doctl compute droplet list --format \"ID,Name,PublicIPv4\""
alias azvms="az vm list-ip-addresses --output table"
#-----------------------------
# Neovim
#-----------------------------
can_haz nvim && alias vi="nvim"
can_haz nvim && alias vim="nvim"
#-----------------------------
# random string/key generator
#-----------------------------
alias genrand='openssl rand -base64 32'
alias genpass='openssl rand -hex 32'
#-----------------------------
# wt (dev build)
#-----------------------------
if can_haz "$HOME/DEV/rd/wt/main/bin/wt"; then
wt_bin="$HOME/DEV/rd/wt/main/bin/wt"
alias wt-dev="$wt_bin"
alias w="$wt_bin"
unset wt_bin
fi
#-----------------------------
# Eza
#-----------------------------
if can_haz eza; then
alias ls='eza --icons --group-directories-first'
alias ll='eza -l --icons --no-user --group-directories-first --time-style long-iso'
alias ls-all='eza -la --icons --no-user --group-directories-first --time-style long-iso'
alias ls-plain='eza -la --icons=never --no-permissions --no-filesize --no-time --no-user'
fi
#-----------------------------
# Tmux
#-----------------------------
if can_haz tmux; then
alias t='tmux new-session -A -s "$(basename "$PWD" | sed "s/^\.//")" -c "$PWD"'
fi