Skip to content

Commit d163c04

Browse files
committed
Revert "don't funcsave internal method"
This reverts commit 391421c.
1 parent 391421c commit d163c04

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/wiki/Getting-Started.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ Onefetch is installed, then what?
44

55
```sh
66
> onefetch /path/of/your/repo
7-
```
8-
9-
Or
10-
7+
```
8+
Or
9+
1110
```sh
1211
> cd /path/of/your/repo
1312
> onefetch
@@ -16,22 +15,19 @@ Or
1615
### Misc
1716

1817
By @spenserblack
19-
2018
```sh
2119
# Runs `onefetch -a Assembly`, `onefetch -a C`, etc.
2220
onefetch -l | tr "[:upper:] " "[:lower:]-" | while read line; do echo "$line"; onefetch -a $line; done;
2321
```
24-
2522
By @quazar-omega
2623

2724
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:
28-
2925
```sh
3026
# git repository greeter
3127
last_repository=
3228
check_directory_for_new_repository() {
3329
current_repository=$(git rev-parse --show-toplevel 2> /dev/null)
34-
30+
3531
if [ "$current_repository" ] && \
3632
[ "$current_repository" != "$last_repository" ]; then
3733
onefetch
@@ -51,7 +47,6 @@ check_directory_for_new_repository
5147
By @TheSast
5248

5349
A fish adaptation of the previous script, run it once in your shell to save it:
54-
5550
```fish
5651
function cd -w='cd'
5752
builtin cd $argv || return
@@ -68,10 +63,10 @@ function check_directory_for_new_repository
6863
end
6964
7065
funcsave cd
66+
funcsave check_directory_for_new_repository
7167
```
7268

7369
By @mbrehin
74-
7570
```sh
7671
# Add Git alias for onefetch.
7772
git config --global alias.project-summary '!which onefetch && onefetch'

0 commit comments

Comments
 (0)