fix: create the settings and keymaps to unblock file watching
This commit is contained in:
parent
fde159fea1
commit
81bfa5fac4
2 changed files with 8 additions and 3 deletions
|
@ -301,8 +301,6 @@ impl Fs for RealFs {
|
||||||
.configure(Config::default().with_poll_interval(latency))
|
.configure(Config::default().with_poll_interval(latency))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
//TODO: unblock this
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
|
||||||
watcher
|
watcher
|
||||||
.watch(path, notify::RecursiveMode::Recursive)
|
.watch(path, notify::RecursiveMode::Recursive)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/bash -e
|
||||||
|
|
||||||
# if not on Linux, do nothing
|
# if not on Linux, do nothing
|
||||||
[[ $(uname) == "Linux" ]] || exit 0
|
[[ $(uname) == "Linux" ]] || exit 0
|
||||||
|
|
||||||
|
# Copy settings and keymap to the user's home directory if they don't exist
|
||||||
|
mkdir -p "$HOME/.config/zed"
|
||||||
|
test -f "$HOME/.config/zed/settings.json" ||
|
||||||
|
cp -uL ./assets/settings/initial_user_settings.json "$HOME/.config/zed/settings.json"
|
||||||
|
test -f "$HOME/.config/zed/keymap.json" ||
|
||||||
|
cp -uL ./assets/keymaps/default.json "$HOME/.config/zed/keymap.json"
|
||||||
|
|
||||||
# if sudo is not installed, define an empty alias
|
# if sudo is not installed, define an empty alias
|
||||||
maysudo=$(command -v sudo || true)
|
maysudo=$(command -v sudo || true)
|
||||||
export maysudo
|
export maysudo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue