You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/wiki/Getting-Started.md
+67-11Lines changed: 67 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,9 @@ Onefetch is installed, then what?
5
5
```sh
6
6
> onefetch /path/of/your/repo
7
7
```
8
+
8
9
Or
9
-
10
+
10
11
```sh
11
12
>cd /path/of/your/repo
12
13
> onefetch
@@ -15,38 +16,50 @@ Onefetch is installed, then what?
15
16
### Misc
16
17
17
18
By [**@spenserblack**](https://github.com/spenserblack)
19
+
18
20
```sh
19
21
# Runs `onefetch -a Assembly`, `onefetch -a C`, etc.
20
22
onefetch -l | tr "[:upper:] ""[:lower:]-"|whileread line;doecho"$line"; onefetch -a $line;done;
21
23
```
24
+
25
+
### Automatic repo detection and running
26
+
27
+
If you want to automate the detection and running of `onefetch` every time you `cd` into a repository you can leverage one of the methods below:
28
+
29
+
#### 1. Bash / Zsh
30
+
22
31
By [**@quazar-omega**](https://github.com/quazar-omega)
23
32
24
33
A script to put in your `.bashrc` - or `.zshrc` - to run onefetch whenever you open a shell into a repository or `cd` into a repository, making sure that it's different from the last one you were in:
0 commit comments