@hurshb50/setup-ubuntu 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,7 +126,7 @@ function fuzzy_finder() {
126
126
  }
127
127
 
128
128
  function typescript_toolchain() {
129
- . "/home/hpatel/.config/vite-plus/env"
129
+ . "$HOME/.config/vite-plus/env"
130
130
  }
131
131
 
132
132
 
@@ -139,6 +139,10 @@ function swap_keys() {
139
139
  return
140
140
  fi
141
141
 
142
+ if ! gsettings list-schemas 2>/dev/null | grep -qx "org.gnome.desktop.input-sources"; then
143
+ return
144
+ fi
145
+
142
146
  gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']"
143
147
  }
144
148
 
@@ -156,7 +160,6 @@ function run() {
156
160
  list_directory_alias
157
161
  custom_bash_rc
158
162
  disable_legacy
159
- swap_capslock_and_esc
160
163
  fuzzy_finder
161
164
  typescript_toolchain
162
165
  swap_keys
@@ -11,7 +11,7 @@ import util from "util";
11
11
  import childProcess from "child_process";
12
12
  //#region package.json
13
13
  var name = "@hurshb50/setup-ubuntu";
14
- var version = "1.4.0";
14
+ var version = "1.5.1";
15
15
  //#endregion
16
16
  //#region source/modules/logger/logger.ts
17
17
  var Logger = class Logger {
@@ -600,15 +600,14 @@ var SmartChangeDirectory = class {
600
600
  const task = new Task("Smart Change Directory");
601
601
  context.logger.add(task);
602
602
  task.start();
603
- const dependencies = ["zoxide"];
604
- if (await context.dependencyManager.isInstalled(dependencies)) {
603
+ const binaryDirectoryPath = path.join(context.directories.home, ".local", "bin");
604
+ const binaryFilePath = path.join(binaryDirectoryPath, "zoxide");
605
+ if (await fs.stat(binaryFilePath, { throwIfNoEntry: false }) !== void 0) {
605
606
  task.finish();
606
607
  return;
607
608
  }
608
- task.continue("Update package manager");
609
- await context.dependencyManager.update(task);
610
- task.continue(`Installing dependencies: ${dependencies.join(", ")}`);
611
- await context.dependencyManager.install(dependencies, task);
609
+ task.continue("Install zoxide");
610
+ await util.promisify(childProcess.exec)(`curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh -s -- --bin-dir ${binaryDirectoryPath}`);
612
611
  task.finish();
613
612
  }
614
613
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hurshb50/setup-ubuntu",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "distribution"