Skip to content

Commit 330238e

Browse files
authored
fix: path in HistoryManager/PluginLoader/ThemeLoader
fix: path in HistoryManager/PluginLoader/ThemeLoader
2 parents fbf8b62 + e977e50 commit 330238e

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Shell/History/HistoryManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class HistoryManager
1818

1919
public HistoryManager(string? path = null)
2020
{
21-
_historyPath = path ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nihilist_shell/.nihilistshell_history");
21+
_historyPath = path ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nshell/.history");
2222
Load();
2323
}
2424

Shell/Plugin/PluginLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ namespace NShell.Shell.Plugins
99
/// </summary>
1010
public class PluginLoader
1111
{
12-
private string PluginFolderPath { get; set; } = $"/home/{Environment.UserName}/.nihilist_shell/plugins";
12+
private string PluginFolderPath { get; set; } = $"/home/{Environment.UserName}/.nshell/plugins";
1313
public string[] PluginList { get; set; }
1414
public int NumberOfPlugins { get; set; }
1515

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

1818
/// <summary>
19-
/// Load all plugins into <c>~/.nihilist_shell/plugins</c> folder.
19+
/// Load all plugins into <c>~/.nshell/plugins</c> folder.
2020
/// </summary>
2121
public void LoadPlugins()
2222
{

Shell/ShellContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private string[] GetThemePrompt(string themeName, string currentDirectory)
5656

5757
string themeDir = Path.Combine(
5858
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
59-
".nihilist_shell",
59+
".nshell",
6060
"themes"
6161
);
6262

Shell/Themes/ThemeLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static string ColorizePathLight(string slashColor, string wordsColor,str
8181
}
8282

8383
/// <summary>
84-
/// Loads a custom theme from the <c>~/.nihilist_shell/themes/</c> directory,
84+
/// Loads a custom theme from the <c>~/.nshell/themes/</c> directory,
8585
/// based on the name found in the theme's JSON file.
8686
/// If the directory doesn't exist, it will be created.
8787
/// </summary>

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ if ! command -v dotnet &> /dev/null; then
2727
fi
2828

2929
USER_PROFILE=$(eval echo ~$USER)
30-
NIHILIST_SHELL_DIR="$USER_PROFILE/.nshell"
31-
HISTORY_FILE="$NIHILIST_SHELL_DIR/.nhistory"
32-
THEMES_DIR="$NIHILIST_SHELL_DIR/themes"
33-
PLUGINS_DIR="$NIHILIST_SHELL_DIR/plugins"
30+
N_SHELL_DIR="$USER_PROFILE/.nshell"
31+
HISTORY_FILE="$N_SHELL_DIR/.nhistory"
32+
THEMES_DIR="$N_SHELL_DIR/themes"
33+
PLUGINS_DIR="$N_SHELL_DIR/plugins"
3434

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

0 commit comments

Comments
 (0)