config tmux

oh-my-tmux

1
2
3
4
cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .

add lines at the end of ~/.tmux.conf.local

1
2
3
4
5
6
7
8
9
10
11
12
13
	# force Vi mode
# really you should export VISUAL or EDITOR environment variable, see manual
set -g status-keys vi
set -g mode-keys vi

# replace C-b by C-a instead of using both prefixes
set -gu prefix2
unbind C-a
unbind C-b
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
set -g prefix M-o
bind M-o send-prefix

install zsh and oh-my-zsh

add 185.199.108.133 raw.githubusercontent.com t o/etc/hosts

1
2
3
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s $(which zsh)

install nodejs

install nvm

1
2
3
4
5
6
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.zshrc
nvm list-remote
nvm install v20.8.0
node -v

npm源

1
npm config set registry https://registry.npmmirror.com

install hexo and pandoc

1
2
npm install -g hexo-cli
sudo apt install pandoc

install hexo-theme-next

1
2
cd blog
npm install hexo-theme-next

theme-next patch

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
diff --git a/_config.yml b/_config.yml
index 5059e2e..e4daac4 100644
--- a/_config.yml
+++ b/_config.yml
@@ -40,8 +40,8 @@ custom_file_path:
# ---------------------------------------------------------------

favicon:
- small: /images/favicon-16x16-next.png
- medium: /images/favicon-32x32-next.png
+ small: /images/favicon-16x16.png
+ medium: /images/favicon-32x32.png
apple_touch_icon: /images/apple-touch-icon-next.png
safari_pinned_tab: /images/logo.svg
#android_manifest: /images/manifest.json
@@ -164,9 +164,9 @@ sidebar:
# Sidebar Avatar
avatar:
# Replace the default image and set the url here.
- url: #/images/avatar.gif
+ url: /images/maru.jpeg
# If true, the avatar will be dispalyed in circle.
- rounded: false
+ rounded: true
# If true, the avatar will be rotated with the cursor.
rotated: false

@@ -501,7 +501,7 @@ math:

# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
mathjax:
- enable: false
+ enable: true
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem: false

@@ -712,7 +712,7 @@ firestore:
# Show Views / Visitors of the website / page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi
busuanzi_count:
- enable: false
+ enable: true
total_visitors: true
total_visitors_icon: user
total_views: true
@@ -812,9 +812,11 @@ pdf:

# Mermaid tag
mermaid:
- enable: false
+ enable: true
# Available themes: default | dark | forest | neutral
- theme: forest
+ theme:
+ light: default
+ dark: dark


# ---------------------------------------------------------------
@@ -894,6 +896,7 @@ vendors:
# MathJax
# mathjax: //cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
mathjax:
+ enable: true

# KaTeX
# katex: //cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css
diff --git a/layout/_partials/footer.swig b/layout/_partials/footer.swig
index f60ea9b..dc5f8e9 100644
--- a/layout/_partials/footer.swig
+++ b/layout/_partials/footer.swig
@@ -42,6 +42,12 @@
{%- endif %}
</div>

+<div class=BbeiAn-info">
+ {{ __('<E6><B5><99>ICP<E5><A4><87>') }} -
+ <a href="http://www.miitbeian.gov.cn/">20003462<E5><8F><B7></a>
+ </a>
+</div>
+
{%- if theme.footer.powered %}
<div class="powered-by">
{%- set next_site = 'https://theme-next.org' %}