-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaliases
More file actions
57 lines (48 loc) · 1.91 KB
/
Copy pathaliases
File metadata and controls
57 lines (48 loc) · 1.91 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
# Not reusing aliases in the definition of other aliases in order aliases in order to properly autoexpanded it with Ctrl+a (custom ZSH function)
# Command aliases
alias kitty-theme="ls ~/.config/kitty/themes/*.conf | fzf --preview 'head -n 40 {} && kitty @ --to unix:/tmp/kitty set-colors -a -c {}'"
alias fd=fdfind
alias o=xdg-open
alias v=nvim
alias h=history
alias sptd="/opt/spotifyd/spotifyd --config-path /home/magidc/.config/spotifyd/spotyfd.conf --no-daemon"
alias icat="kitty +kitten icat"
alias python="python3"
alias n="nautilus ."
alias yd="pwd | xclip -selection c"
alias yf="copy_file_path"
alias y="xclip -selection c"
alias yy="copy_file_content"
alias pp="xclip -selection clipboard -o" # Paste from clipboard
alias jj="xclip -selection clipboard -o | jless" # Paste JSON from clipboard and open with jless
alias jc='eval "$(xclip -selection clipboard -o)" | jless' # Run command (i.e curl) from clipboard and open with jless
alias cx="commit_push"
alias i="launch_project_ide"
alias l="exa --icons"
alias lc="exa --icons -1"
alias ll="exa --icons -l"
alias la="exa --icons -l -a"
alias lt="exa --icons -T --level=2"
alias ltl="exa --icons -T --level"
alias t="tree -l -L 2"
alias tl="tree -l -L"
# Utility scripts
alias restart_gnome="killall -SIGQUIT gnome-shell"
alias purge='sudo apt autoremove -y && sudo apt autoclean -y && sudo apt clean'
alias sup="sudo apt update; sudo apt -y upgrade; flatpak update"
alias tas="tmux attach -t"
# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='grep -E --color=auto'
alias fgrep='grep -F --color=auto'
# Confirm before overwriting something
alias cp="cp -i"
alias mv='mv -i'
alias rm='rm -i'
# Easier to read disk
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
# Top process eating memory
alias psmem='ps auxf | sort -nr -k 4 | head -5'
# Top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3 | head -5'