Skip to content

Commit

Permalink
Quartz sync: May 11, 2024, 6:22 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
windsuzu committed May 11, 2024
1 parent e9d2474 commit 17d9e94
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 33 deletions.
12 changes: 6 additions & 6 deletions content/.obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"recentFiles": [
{
"basename": "Dev Environment MOC",
"path": "mocs/Dev Environment MOC.md"
},
{
"basename": "fzf.fish",
"path": "fish-shell/fzf.fish.md"
},
{
"basename": "Dev Environment MOC",
"path": "mocs/Dev Environment MOC.md"
"basename": "nvm.fish",
"path": "fish-shell/nvm.fish.md"
},
{
"basename": "Fish Shell",
Expand All @@ -20,10 +24,6 @@
"basename": "index",
"path": "index.md"
},
{
"basename": "nvm.fish",
"path": "fish-shell/nvm.fish.md"
},
{
"basename": "Install Fish Shell",
"path": "fish-shell/Install Fish Shell.md"
Expand Down
33 changes: 10 additions & 23 deletions content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,8 @@
},
"pinned": true
}
},
{
"id": "101015697127e363",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "fish-shell/fzf.fish.md",
"mode": "source",
"source": false
}
}
}
],
"currentTab": 1
]
}
],
"direction": "vertical"
Expand Down Expand Up @@ -117,7 +104,7 @@
"state": {
"type": "localgraph",
"state": {
"file": "fish-shell/fzf.fish.md",
"file": "mocs/Dev Environment MOC.md",
"options": {
"collapse-filter": true,
"search": "",
Expand All @@ -140,7 +127,7 @@
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 0.535979599622594,
"scale": 0.38230109687699715,
"close": true
}
}
Expand All @@ -167,7 +154,7 @@
"state": {
"type": "outline",
"state": {
"file": "fish-shell/fzf.fish.md"
"file": "mocs/Dev Environment MOC.md"
}
}
},
Expand Down Expand Up @@ -208,7 +195,7 @@
"state": {
"type": "file-properties",
"state": {
"file": "fish-shell/fzf.fish.md"
"file": "mocs/Dev Environment MOC.md"
}
}
},
Expand All @@ -218,7 +205,7 @@
"state": {
"type": "backlink",
"state": {
"file": "fish-shell/fzf.fish.md",
"file": "mocs/Dev Environment MOC.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -235,7 +222,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "fish-shell/fzf.fish.md",
"file": "mocs/Dev Environment MOC.md",
"linksCollapsed": false,
"unlinkedCollapsed": false
}
Expand All @@ -261,14 +248,14 @@
"cmdr:Obsidian Git: Create backup": false
}
},
"active": "101015697127e363",
"active": "3d50214808998e0a",
"lastOpenFiles": [
"mocs/Dev Environment MOC.md",
"fish-shell/fzf.fish.md",
"mocs/Dev Environment MOC.md",
"fish-shell/nvm.fish.md",
"fish-shell/Fish Shell.md",
"fish-shell/z for fish.md",
"index.md",
"fish-shell/nvm.fish.md",
"fish-shell/Install Fish Shell.md",
"fish-shell/fisher.md",
"english-grammar/The - definite article.md",
Expand Down
17 changes: 16 additions & 1 deletion content/fish-shell/fzf.fish.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
---
draft: false
date: 2024-05-10 20:20
date: 2024-05-11 18:18
tags:
- fish-shell
---

[fzf](https://github.com/junegunn/fzf) is a powerful fuzzy finder that provides a user interface to search the directory, command history, and git status and log.

[fzf.fish](https://github.com/PatrickF1/fzf.fish) provides some default key bindings and makes it easier for you to customize the key bindings and functionalities of [fzf](https://github.com/junegunn/fzf).

### Search directory

To search the directory, press `Alt` + `Ctrl` + `F` (you won't see the files in `.gitignore`). When you hit `Enter` on a file or directory, the **relative path** will show up in the input. If the path is a directory, you can just hit `Enter` again to get the same result as `cd` to it.

### Search command history

To search the command history, just press `Ctrl` + `R`. When you hit `Enter` on the previous command, the one you selected will show up in the input field.

### Search Git

- Press `Alt` + `Ctrl` + `S` for searching git status.
- Press `Alt` + `Ctrl` + `L` for searching git log.


> [!info] References
Expand Down
12 changes: 11 additions & 1 deletion content/fish-shell/nvm.fish.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
draft: false
date: 2024-05-10 18:28
date: 2024-05-11 17:12
tags:
- fish-shell
---
Expand Down Expand Up @@ -52,5 +52,15 @@ Activate any version of Node.js by typing `nvm use`.
nvm use v20.13.1
```

Lastly, if you want to set the specific node version as the default, use `set --universal nvm_default_version version`.

```bash
# set lts as default version
set --universal nvm_default_version lts

# set 18.4.0 as default version
set --universal nvm_default_version v18.4.0
```

> [!info] References
> - [jorgebucaran/nvm.fish: The Node.js version manager you'll adore, crafted just for Fish (github.com)](https://github.com/jorgebucaran/nvm.fish)
4 changes: 2 additions & 2 deletions content/mocs/Dev Environment MOC.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
draft: false
date: 2024-05-10 19:12
date: 2024-05-11 18:19
tags:
- dev-environment
---
Expand All @@ -16,4 +16,4 @@ tags:
- [done](https://github.com/franciscolourenco/done)- getting notification when process done
- [autopair.fish](https://github.com/jorgebucaran/autopair.fish) - matching pairs `(),{},[],"",''` auto-completion


## WSL 2

0 comments on commit 17d9e94

Please sign in to comment.