parent
e7fcddff69
commit
ad88e9754e
7 changed files with 55 additions and 47 deletions
7
script/clippy
Executable file
7
script/clippy
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# clippy.toml is not currently supporting specifying allowed lints
|
||||
# so specify those here, and disable the rest until Zed's workspace
|
||||
# will have more fixes & suppression for the standard lint set
|
||||
cargo clippy --release --workspace --all-features --all-targets -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
|
||||
cargo clippy -p gpui
|
18
script/linux
18
script/linux
|
@ -1,25 +1,7 @@
|
|||
#!/usr/bin/bash -e
|
||||
|
||||
# if not on Linux, do nothing
|
||||
[[ $(uname) == "Linux" ]] || exit 0
|
||||
|
||||
# Copy assets to the user's home directory if they don't exist
|
||||
mkdir -p "$HOME/.config/zed"
|
||||
|
||||
mkdir -p "$HOME/.config/zed/plugins"
|
||||
|
||||
mkdir -p "$HOME/.config/zed/themes"
|
||||
cp -ruL ./assets/themes/*/*.json "$HOME/.config/zed/themes"
|
||||
|
||||
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
|
||||
maysudo=$(command -v sudo || true)
|
||||
export maysudo
|
||||
|
||||
# Ubuntu, Debian, etc.
|
||||
# https://packages.ubuntu.com/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue