-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalias.cgf
More file actions
100 lines (88 loc) · 2.9 KB
/
alias.cgf
File metadata and controls
100 lines (88 loc) · 2.9 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# CG ALIAS
alias avd_list="avdmanager list avd | grep Name"
alias avd_launch="cd $HOME/Library/Android/Sdk/emulator && ./emulator -avd "
alias mip="ifconfig | grep Bcast"
alias src="source ~/.zshrc && echo 'Shell was reloaded!'"
alias apk="./gradlew assembleRelease"
alias die="killall node"
alias showalias="cat ~/.bashrc | alias"
alias checknet="ping google.com"
alias prj="cd ~/Projects"
alias cd..="cd .."
alias cgshell="cd ~/bashrc-cg && vi"
alias gemini_25_flash="gemini -m gemini-2.5-flash"
alias gemini_25_flash_lite="gemini -m gemini-2.5-flash-lite"
alias markdowns="cd ~/Google\ Drive/My\ Drive/CG\ Files/Markdowns"
alias myname="echo 'ASTRID:YN7N2Y3PJ6:12-18-2021:MBP14'"
alias e="exit"
# UTILITY ALIASES
function remove_swap() {
echo 'find . -type f -name "*.sw[klmnop]" -delete' | bash
}
alias removeswap="remove_swap"
function check_port() {
echo "lsof -i tcp:$@" | bash
}
alias checkport="check_port"
function kill_port() {
echo "kill -9 $@" | bash
}
alias killport="kill_port"
function find_file_contain {
ack -i "$@";
}
alias ffc="find_file_contain"
function nvim_open_file {
nvim $(fzf)
}
alias vf="nvim_open_file"
function set_title {
printf "\e]2;$*\a"
}
alias st="set_title"
function set_iterm_title {
echo -ne "\033]0;"$*"\007"
}
alias iterm_title="set_iterm_title"
# GIT ALIASES
alias gs="clear && git status"
alias gb="clear && git branch"
alias gwb="clear && git rev-parse --abbrev-ref HEAD"
alias ga="git add"
alias gbr="clear && git branch -r"
alias grv="clear && git remote -v"
alias gd="clear && git diff"
alias gf="clear && git fetch origin --prune"
alias grh="clear && git reset --hard"
alias gco="git checkout"
alias gbd="git branch -D"
alias gcm="git commit -m"
alias gce="git config --global core.editor 'nvim'"
alias vi="nvim"
alias create_gitignore_global="cd && touch .gitignore_global && git config --global core.excludesfile ~/.gitignore_global"
function generate_patch {
echo "git diff > ~/Google\ Drive/My\ Drive/Patches/$@"| bash
}
alias gpatch="generate_patch"
function git_pull {
branch=$(git branch --show-current)
echo "git pull origin $branch" | bash
}
alias gpl="git_pull"
function git_push {
branch=$(git branch --show-current)
echo "git push origin $branch" | bash
}
alias gps="git_push"
# DEPRECATED ALIASES
# alias sysupdate="sudo apt-get update"
# alias appinstalled='for app in /usr/share/applications/*.desktop; do echo "${app:24:-8}"; done'
# alias and_std="cd /home/chaelgutierrez/Desktop/android-studio/bin && ./studio.sh"
# alias revivekey="sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys "
# alias autoremove="sudo apt-get autoremove"
# alias autoclean="sudo apt-get autoclean"
# alias showicon="gsettings set org.gnome.desktop.background show-desktop-icons true"
# alias hideicon="gsettings set org.gnome.desktop.background show-desktop-icons false"
# alias removelock="sudo rm /var/lib/apt/lists/lock"
# alias me="sudo"
# alias aptinstall="sudo apt-get install"