Skip to content

Commit eb3db38

Browse files
committed
feat: config file in progress
1 parent 4df44ec commit eb3db38

4 files changed

Lines changed: 2 additions & 7 deletions

File tree

Shell/Commands/CommandLoader.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public static class CommandLoader
1616
public static void RefreshCommands()
1717
{
1818
var paths = Environment.GetEnvironmentVariable("PATH")?.Split(':') ?? Array.Empty<string>();
19-
2019
var newCommands = new HashSet<string>();
2120

2221
foreach (var path in paths)
@@ -46,9 +45,7 @@ public static void RefreshCommands()
4645
AnsiConsole.MarkupLine($"[[[red]-[/]]] - Error accessing directory {path}: [bold yellow]{ex.Message}[/]");
4746
}
4847
}
49-
5048
HashSet<string> availableCommands = newCommands;
5149
AnsiConsole.MarkupLine($"[[[green]+[/]]] - Refreshed command list. Found {availableCommands.Count} new commands.");
5250
}
53-
5451
}

Shell/Config/ShellConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class ShellConfig
77
{
88
public int HistoryExpirationTime { get; set; }
99
public int HistoryMaxStorage { get; set; }
10-
public string SelectedTheme { get; set; }
10+
public required string SelectedTheme { get; set; }
1111

1212
public static ShellConfig? LoadConfig()
1313
{

Shell/Plugin/PluginLoader.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,5 @@ public void LoadPlugins()
5151
Directory.CreateDirectory(PluginFolderPath);
5252
}
5353
}
54-
5554
}
56-
5755
}

uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ -f "$BIN_PATH" ]; then
1818
echo "[*] - Removing $BIN_PATH & related folders/files..."
1919
sudo rm -rf "$BIN_PATH" "$N_SHELL_DIR"
2020
else
21-
echo "[-] - No executable found at $BIN_PATH"
21+
echo "[-] - No executable found at $BIN_PATH"discord
2222
fi
2323

2424
if grep -Fxq "$BIN_PATH" /etc/shells; then

0 commit comments

Comments
 (0)