-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.sh
executable file
·50 lines (40 loc) · 1.21 KB
/
aliases.sh
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
#!/usr/bin/env bash
# -------------------------------------------------------------- //
# Aliases
# -------------------------------------------------------------- //
# Dotfiles shortcut
alias dotfiles="cd $HOME/.config/dotfiles"
# Filesystem
alias bamchmod="stat -f \"%OLp\""
alias ls="eza"
alias la="eza -ag"
alias l="eza -lahg"
# Terminal
alias c="clear"
alias srczsh="source $HOME/.zshrc"
alias vialiases="vi $HOME/.config/dotfiles/aliases.sh"
alias vifunctions="vi $HOME/.config/dotfiles/functions.sh"
alias vim="nvim"
alias vissh="vi $HOME/.ssh/config"
alias vizsh="vi $HOME/.zshrc"
# Misc
alias d="youtube-dl --format mp4 "
alias dl="youtube-dl -x --audio-format wav"
alias nano="vim"
# Processes
alias stopua="sudo killall -9 UA\ Mixer\ Engine"
alias zombies="ps axo stat,ppid,pid,comm | grep -w defunct"
# Network
alias myip="curl -4 ifconfig.co/ip"
alias killdns="killDns"
#alias ping="gping"
# Composer-related
alias ci="composer install -o"
alias co="composer dumpautoload -o"
alias cu="composer update -o"
# Laravel-related
alias tinker="php artisan tinker"
alias artisan="php artisan"
# MySQL-related
alias start_mysql="$MYSQL_DOCKER_COMPOSE_DIR/start_mysql.sh"
alias stop_mysql="$MYSQL_DOCKER_COMPOSE_DIR/stop_mysql.sh"