diff --git a/shell/_main.sh b/shell/_main.sh index 985d47b..3503fbb 100755 --- a/shell/_main.sh +++ b/shell/_main.sh @@ -47,8 +47,5 @@ source "$DOTSHELL/docker.sh" source "$DOTSHELL/google-cloud.sh" source "$DOTSHELL/kubernetes.sh" -# Services -source "$DOTSHELL/services.sh" - # Environment Setup source "$DOTSHELL/env.sh" diff --git a/shell/aliases.sh b/shell/aliases.sh index 2fb574d..fec4c1b 100644 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -34,6 +34,9 @@ alias open_ports="sudo lsof -i -P | grep --color=never -i \"listen\"" alias ap="ansible-playbook" alias av="ansible-vault" +# Flush DNS cache +alias flush_dns="dscacheutil -flushcache" + # Misc. alias weechat="TERM=screen-256color weechat-curses" alias slashdot="ab -kc 50 -t 300" diff --git a/shell/services.sh b/shell/services.sh deleted file mode 100644 index c26065e..0000000 --- a/shell/services.sh +++ /dev/null @@ -1,31 +0,0 @@ -# Flush DNS cache -alias flush_dns="dscacheutil -flushcache" - -# Apache related -alias start_apache="sudo apachectl start" -alias stop_apache="sudo apachectl stop" -alias restart_apache="sudo apachectl restart" - -# NAMED DNS Server -NAMED_LAUNCHD_CONFIG="/System/Library/LaunchDaemons/org.isc.named.plist" -alias start_named="sudo launchctl load $NAMED_LAUNCHD_CONFIG" -alias stop_named="sudo launchctl unload $NAMED_LAUNCHD_CONFIG" -alias restart_named="stop_named; start_named" - -# Memcache related -MEMCACHED_LAUNCHD_CONFIG="~/Library/LaunchAgents/com.danga.memcached.plist" -alias start_memcached="launchctl load -w $MEMCACHED_LAUNCHD_CONFIG" -alias stop_memcached="launchctl unload -w $MEMCACHED_LAUNCHD_CONFIG;" -alias restart_memcached="stop_memcached; start_memcached" - -# MySQL related -MYSQL_LAUNCHD_CONFIG="~/Library/LaunchAgents/com.mysql.mysqld.plist" -alias start_mysql="launchctl load -w $MYSQL_LAUNCHD_CONFIG" -alias stop_mysql="launchctl unload -w $MYSQL_LAUNCHD_CONFIG;" -alias restart_mysql="stop_mysql; start_mysql" - -# Redis related -REDIS_LAUNCHD_CONFIG="~/Library/LaunchAgents/io.redis.redis-server.plist" -alias start_redis="launchctl load -w $REDIS_LAUNCHD_CONFIG" -alias stop_redis="launchctl unload -w $REDIS_LAUNCHD_CONFIG;" -alias restart_redis="stop_redis; start_redis"