-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zsh_aliases
38 lines (29 loc) · 949 Bytes
/
.zsh_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
alias wallpaper_change="${HOME}/home/Projects/macos_dotfiles/scripts/wallpaper_change/set_wallpaper.sh"
alias c=clear
alias hc='printf "\ec\e[3J"'
alias fuck='sudo $(fc -ln -1)'
# use to copy output from command, eg "cat file.txt | clip"
alias clip=pbcopy
# docker
#alias docker=podman
#alias python=/opt/homebrew/bin/python3.11
#alias python=/opt/homebrew/bin/python3
#alias python=/opt/homebrew/opt/[email protected]/bin/python3.10
alias pyt=/opt/homebrew/opt/[email protected]/bin/python3.10
alias python=/opt/homebrew/opt/[email protected]/bin/python3.10
alias git_clean="${HOME}/home/Projects/macos_dotfiles/scripts/remove_local_branches_not_on_remote.sh"
function cmd_success() {
say "Done"
}
function cmd_failure() {
say "Failure"
}
function docker_compose_override() {
case $1 in
build|up)
docker-compose $@ && cmd_success || cmd_failure;;
*)
command docker-compose "$@";;
esac
}
alias docker-compose=docker_compose_override