-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alias_zshrc
54 lines (40 loc) · 2.56 KB
/
.alias_zshrc
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
##############################################################################
# MemSQL Stuff
##############################################################################
alias memsql='mysql -h 127.0.0.1 -u root --prompt="memsql> "' # client to connect to memsql
alias my='mysql -h 127.0.0.1 --socket=/var/run/mysqld/mysqld.sock -u root --port 3307' # client to connect to mysql (running on port 3307)
# run singlebox memsqld
alias single='cd $PATH_TO_MEMSQL/debug; ./memsqld --singlebox'
alias singler='cd $PATH_TO_MEMSQL/release; ./memsqld --singlebox'
# run loopback memsqld
alias distributed='cd $PATH_TO_MEMSQL/debug; ./memsqld'
alias distributedr='cd $PATH_TO_MEMSQL/release; ./memsqld'
# run memsqld in gdb
alias singled='cd $PATH_TO_MEMSQL/debug; gdb -ex run -ex "tui enable" --args ./memsqld --singlebox'
alias distributedd='cd $PATH_TO_MEMSQL/debug; gdb -ex run -ex "tui enable" --args ./memsqld '
alias t='$PATH_TO_MEMSQL/memsqltest/t.py'
alias pt='psy test -f' # This will trigger debug+release builds. Before sending out a diff, you should always make sure release builds are working.
alias ptdebug='psy test --debug-only -f' # This will trigger only a debug build - useful for iterating as it saves psyduck resources, and builds faster.
alias memmake='memsql-please make debug --skip-binplace memsql-server'
alias memclean='memsql-please make debug --skip-binplace clean'
alias c_d='rm -r data/* tracelogs/*' # Clear memsql data (run from the build/install dir you wish to clear)
alias c_p='rm -r plancache/*' # Clear memsql plancache (run from the build/install dir you wish to clear)
alias c_b='rm -r bincache/*' # Clear builds cached by distributed.py (run from memsql/)
##############################################################################
# Dot file management
##############################################################################
alias dot=yadm
##############################################################################
# Snaps
##############################################################################
alias mdless=/snap/mdless/current/bin/mdless
##############################################################################
# Misc
##############################################################################
alias pigs="du -h -d 1"
alias todo="vi ~/.todo"
alias m="cd ~/memsql"
##############################################################################
# Demo stuff
##############################################################################
alias s2-dev-shell="~/code/singlestore-wasm-toolkit/scripts/dev-shell"