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
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,12 @@ Onefetch is installed, then what?
14
14
15
15
### Misc
16
16
17
-
By @spenserblack
17
+
By [**@spenserblack**](https://github.com/spenserblack)
18
18
```sh
19
19
# Runs `onefetch -a Assembly`, `onefetch -a C`, etc.
20
20
onefetch -l | tr "[:upper:] ""[:lower:]-"|whileread line;doecho"$line"; onefetch -a $line;done;
21
21
```
22
-
By @quazar-omega
22
+
By [**@quazar-omega**](https://github.com/quazar-omega)
23
23
24
24
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:
25
25
```sh
@@ -44,7 +44,7 @@ cd() {
44
44
check_directory_for_new_repository
45
45
```
46
46
47
-
By @TheSast
47
+
By [**@TheSast**](https://github.com/TheSast)
48
48
49
49
A fish adaptation of the previous script, run it once in your shell to save it:
50
50
```fish
@@ -66,7 +66,16 @@ funcsave cd
66
66
funcsave check_directory_for_new_repository
67
67
```
68
68
69
-
By @mbrehin
69
+
By [**@mataha**](https://github.com/mataha)
70
+
71
+
An adaptation of the above snippet suited for Windows's `cmd.exe`,
72
+
specifically for inclusion in `AutoRun` or DOSKEY scripts:
73
+
```cmd
74
+
@set LAST_REPOSITORY=
75
+
@doskey cd = @(if "$*"=="" (chdir /d "%%USERPROFILE%%") else (chdir /d $*)) ^&^& (for /f "usebackq tokens=* delims=" %%i in (`"git rev-parse --show-toplevel 2$Gnul"`) do @(if not "%%~i"=="" if not "%%~i"=="%%LAST_REPOSITORY%%" (onefetch ^& set "LAST_REPOSITORY=%%~i")))
76
+
```
77
+
78
+
By [**@mbrehin**](https://github.com/mbrehin)
0 commit comments