-
Notifications
You must be signed in to change notification settings - Fork 6
/
aliases.fish
43 lines (35 loc) · 1.14 KB
/
aliases.fish
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
# Ruby
alias rake='bundle exec rake'
alias spec='bundle exec spec'
alias rspec='bundle exec rspec'
alias brails='bundle exec rails'
# Others
alias clear_drive='rm -rf .fseventsd ._.Trashes .Trashes .Spotlight-V100'
# alias top="top -o cpu"
alias ssh "env TERM=xterm-256color ssh"
# Recursively delete `.DS_Store` files
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool true and killall Finder"
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false and killall Finder"
# docker
alias dk="docker kill (docker ps -q -a)"
alias dvr="docker volume rm"
# docker-compose
alias dce="docker-compose exec"
alias dcu="docker-compose up"
alias dck="docker-compose kill"
alias dcrm="docker-compose rm"
alias dcr="docker-compose run"
alias dcps="docker-compose ps"
alias dcl="docker-compose logs"
alias dcrt="docker-compose restart"
# kubernetes
alias kpods="kubectl get pods -n"
# alias cat="bat"
if type -q 'eza'
alias ls="eza --icons"
alias ll="ls -l --git --icons"
alias la="eza -a --icons"
alias lla="eza -la --git --icons"
end