-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc_spin_legacy
23 lines (17 loc) · 1.47 KB
/
.zshrc_spin_legacy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export SPIN_LEGACY="1"
autoload -Uz vcs_info
precmd_functions+=( vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:*' unstagedstr '*'
zstyle ':vcs_info:*' stagedstr '+'
zstyle ':vcs_info:git:*' formats '%F{200}[%b%u%c]%f'
zstyle ':vcs_info:*' enable git
# shellcheck disable=SC2016
PROMPT='$SPIN_INSTANCE_FQDN %(?.%F{green}√.%F{red}?%?)%f %B%c%b $vcs_info_msg_0_ $ '
alias nginx-update="erb fqdn="${SPIN_INSTANCE_FQDN}" ssl_certificate='/etc/nginx/ssl/tls.crt' ssl_certificate_key='/etc/nginx/ssl/tls.key' access_log='/dev/stdout' error_log='/dev/stderr' .spin/nginx.conf.erb > /etc/nginx/conf.d/nginx.conf"
alias find-tsserver-logs="find /home/spin/.vscode-server/data/logs/ |grep /tsserver\\\.log"
alias pr_url='echo "https://$(git config --get remote.origin.url | sed ''s/.\*github.com/github.com/'')/compare/$(git branch --show-current)?expand=1"'
alias install_go='f() { wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz; rm -rf /usr/local/go; sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz; echo ''Add Go to your path: export PATH=\$PATH:/usr/local/go/bin'' };f'
alias clone_esbuild='f() { cd /src/github.com/shopify/web; git clone https://github.com/GoodForOneFare/esbuild.git; };f'
alias make_esbuild='f() { pkill -9 -f runner.ts; make; make platform-neutral; cp esbuild /src/github.com/shopify/web/spinx/node_modules/esbuild/bin/esbuild && cp npm/esbuild/lib/main.* /src/github.com/shopify/web/spinx/node_modules/esbuild/lib/; };f'