-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
62 lines (52 loc) · 1.32 KB
/
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
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
{{#if dotter.packages.zsh}}
reload() {
export _DOTFILES_RELOADING=1
source ~/.zshrc
fc -RI
export _DOTFILES_RELOADING=""
}
{{/if}}
alias ':q'='echo "ヾ(・ω・*)"'
# GNU for MacOS
if [ $(uname -s) = 'Darwin' ]; then
if [ -x "$(command -v gln)" ]; then
alias ln='gln'
fi
fi
# systemctl
if [ $(uname -s) = 'Linux' ] && [ -x "$(command -v systemctl)" ]; then
alias sc='systemctl'
alias scu='systemctl --user'
alias scs='systemctl --system'
fi
if [ -x "$(command -v tmux)" ]; then
alias ta='tmux attach -t 1 2> /dev/null || tmux new -s 1 -n 0'
fi
alias la='ls -a'
alias ll='ls -l'
alias lla='ls -la'
if [ -x "$(command -v eza)" ]; then
alias ls='eza --color=auto'
alias lg='ls -l --git --git-ignore'
elif [ -x "$(command -v exa)" ]; then
alias ls='exa --color=auto'
alias lg='ls -l --git --git-ignore'
else
alias ls='ls --color=auto'
fi
if [ ! -x "$(command -v vim)" ] && [ -x "$(command -v nvim)" ] ; then
alias vim='nvim'
fi
color_test() {
curl -fsSL https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash -
}
color_test24() {
curl -fsSL https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh | bash -
}
# ssh() {
# _reset() {
# tput init
# }
#
# command ssh "$@" || _reset
# }