-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliases
73 lines (61 loc) · 1.64 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
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env bash
PLATFORM=$(uname)
alias d="docker"
alias dc="docker-compose"
alias g="git"
alias hs="history | fzf"
alias v="nvim"
alias vim="nvim"
# Rust alternatives
# Partial source: https://zaiste.net/posts/shell-commands-rust/
alias cdb="z mr-yum-db-schema"
alias cma="z manage-api"
alias cmf="z manage-frontend"
alias cms="z smoke"
alias csa="z serve-api"
alias csf="z serve-frontend"
alias du="dust"
alias l="eza -l --icons"
alias la="eza -a --icons"
alias lg="lazygit"
alias ll="eza"
alias ls="eza --icons"
alias mls="mryum login && mryum shell"
alias ms="mryum shell"
alias pr="gh pr create --web"
alias prv="gh pr view --web"
alias ranger="yazi"
alias rs="~/bin/reset.sh"
alias s="~/dev/search.sh"
alias sed="sd"
alias tmux="zellij"
alias zc="zellij --layout compact"
alias ya="yadm"
# --------------
# Old ls aliases
# --------------
# # Detect which `ls` flavor is in use
# if ls --color > /dev/null 2>&1; then # GNU `ls`
# colorflag="--color"
# else # macOS `ls`
# colorflag="-G"
# fi
# # List all files colorized in long format
# alias l="ls -lhF ${colorflag}"
# alias ll="ls -hF ${colorflag}"
# # List all files colorized in long format, including dot files
# alias la="ls -lahF ${colorflag}"
# # List only directories
# alias ld="ls -lhF ${colorflag} | grep --color=never '^d'"
# # Always use color output for `ls`
# alias ls="command ls ${colorflag}"
# --------------
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
# Clipboard copy
if [[ ${PLATFORM} == "Linux" ]]; then
alias copy='xclip -sel clip'
alias pbcopy=copy
alias open=xdg-open
alias sc="scrot -d 3 -e 'mv \$f ~/Pictures/screenshots/'"
fi