VIM 检索区分大小写

检索时加上\C即可

AWS EC2 run gogs by docker

install docker

1
sudo yum install docker

ssh默认使用zsh设置

1
2
3
4
sudo vim /etc/passwd

# 找到用户名,将末尾的bash或sh改为zsh
:wq!

vim tab顺序变换,移动

1
:tabm [N]

N 为 0 开始的数字
不指定N的情况下,移动到末尾

Git diff --name-only and copy that list

1
zip update.zip $(git diff --name-only commit commit)

来自stackoverflow参考链接

vue config files config

阅读前如果对vue env设置不理解的请先查看 vue env file
alias设置不理解的请查看vue resolve alias config

vue env file

create file

1
2
# touch env.[custom]
touch env.test

env.test
custom var must start with VUE_APP_

1
2
3
NODE_ENV=development
BASE_URL=/
VUE_APP_MODE=test

vue create loading component with vuex

tree

loading

1
2
3
▾ components/
▾ common/
loading.vue # loading component file
1
2
3
▾ store/
▸ data/
app.ts # state module file

vue resolve alias config

vuejs默认@ 指向 ./src

Vuejs get Environment Variables

set model File

1
touch .env.test

key=value

MODE=test


use test environment

1
vue-cli-service build --mode development

get the values

1
console.log(process.env.MODE)
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×