@@ -12,6 +12,29 @@ OPTIONS
12
12
--permalink Use a permalink instead of a regular URL.
13
13
--remote=REMOTE Use a URL from the specified remote repository.
14
14
15
+ ALIASES
16
+ To enable support for non-standard repository URLs (e.g., GitHub Enterprise), you can create aliases
17
+ for the repository URL. To define these aliases, create a file named "aliases.json" within the
18
+ specified configuration directory, as illustrated below:
19
+
20
+ {
21
+ "my.github.com": "github.com",
22
+ // Add more aliases as needed
23
+ }
24
+
25
+ This file needs to be stored in the "browse" directory within the configuration directory, as
26
+ indicated by the following paths based on your operating system:
27
+
28
+ ┌─────────┬────────────────────────────────────────────┬──────────────────────────────────────────┐
29
+ │ OS │ Value │ Example │
30
+ ├─────────┼────────────────────────────────────────────┼──────────────────────────────────────────┤
31
+ │ Linux │ ($XDG_CONFIG_HOME or $HOME/.config)/browse │ /home/alisue/.config/browse │
32
+ ├─────────┼────────────────────────────────────────────┼──────────────────────────────────────────┤
33
+ │ macOS │ $HOME/Library/Preferences/browse │ /Users/alisue/Library/Preferences/browse │
34
+ ├─────────┼────────────────────────────────────────────┼──────────────────────────────────────────┤
35
+ │ Windows │ $APPDATA\browse │ C:\Users\alisue\AppData\Roaming\browse │
36
+ └─────────┴────────────────────────────────────────────┴──────────────────────────────────────────┘
37
+
15
38
EXAMPLES
16
39
$ browse
17
40
#=> Opens a tree page of the current working directory in the HEAD commit of the current branch
0 commit comments