Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Shell/History/HistoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class HistoryManager

public HistoryManager(string? path = null)
{
_historyPath = path ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nihilist_shell/.nihilistshell_history");
_historyPath = path ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nshell/.history");
Load();
}

Expand Down
4 changes: 2 additions & 2 deletions Shell/Plugin/PluginLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
/// </summary>
public class PluginLoader
{
private string PluginFolderPath { get; set; } = $"/home/{Environment.UserName}/.nihilist_shell/plugins";
private string PluginFolderPath { get; set; } = $"/home/{Environment.UserName}/.nshell/plugins";
public string[] PluginList { get; set; }

Check warning on line 13 in Shell/Plugin/PluginLoader.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'PluginList' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public int NumberOfPlugins { get; set; }

public static PluginLoader Instance { get; private set; } = null!;

/// <summary>
/// Load all plugins into <c>~/.nihilist_shell/plugins</c> folder.
/// Load all plugins into <c>~/.nshell/plugins</c> folder.
/// </summary>
public void LoadPlugins()
{
Expand Down
2 changes: 1 addition & 1 deletion Shell/ShellContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public string Prompt { get; private set; }
public string LSColors { get; private set; }

public ShellContext()

Check warning on line 18 in Shell/ShellContext.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'LSColors' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 18 in Shell/ShellContext.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Prompt' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
{
CurrentDirectory = Directory.GetCurrentDirectory();
SetPromptAndColors("default");
Expand Down Expand Up @@ -56,7 +56,7 @@

string themeDir = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".nihilist_shell",
".nshell",
"themes"
);

Expand Down
2 changes: 1 addition & 1 deletion Shell/Themes/ThemeLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static string ColorizePathLight(string slashColor, string wordsColor,str
}

/// <summary>
/// Loads a custom theme from the <c>~/.nihilist_shell/themes/</c> directory,
/// Loads a custom theme from the <c>~/.nshell/themes/</c> directory,
/// based on the name found in the theme's JSON file.
/// If the directory doesn't exist, it will be created.
/// </summary>
Expand Down
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if ! command -v dotnet &> /dev/null; then
fi

USER_PROFILE=$(eval echo ~$USER)
NIHILIST_SHELL_DIR="$USER_PROFILE/.nshell"
HISTORY_FILE="$NIHILIST_SHELL_DIR/.nhistory"
THEMES_DIR="$NIHILIST_SHELL_DIR/themes"
PLUGINS_DIR="$NIHILIST_SHELL_DIR/plugins"
N_SHELL_DIR="$USER_PROFILE/.nshell"
HISTORY_FILE="$N_SHELL_DIR/.nhistory"
THEMES_DIR="$N_SHELL_DIR/themes"
PLUGINS_DIR="$N_SHELL_DIR/plugins"

echo "[*] - Creating directories/files if they don't exist..."

Expand Down
Loading