Skip to content

Commit 391421c

Browse files
committed
don't funcsave internal method
1 parent aaff893 commit 391421c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/wiki/Getting-Started.md

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

55
```sh
66
> onefetch /path/of/your/repo
7-
```
8-
Or
9-
7+
```
8+
9+
Or
10+
1011
```sh
1112
> cd /path/of/your/repo
1213
> onefetch
@@ -15,19 +16,22 @@ Onefetch is installed, then what?
1516
### Misc
1617

1718
By @spenserblack
19+
1820
```sh
1921
# Runs `onefetch -a Assembly`, `onefetch -a C`, etc.
2022
onefetch -l | tr "[:upper:] " "[:lower:]-" | while read line; do echo "$line"; onefetch -a $line; done;
2123
```
24+
2225
By @quazar-omega
2326

2427
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+
2529
```sh
2630
# git repository greeter
2731
last_repository=
2832
check_directory_for_new_repository() {
2933
current_repository=$(git rev-parse --show-toplevel 2> /dev/null)
30-
34+
3135
if [ "$current_repository" ] && \
3236
[ "$current_repository" != "$last_repository" ]; then
3337
onefetch
@@ -47,6 +51,7 @@ check_directory_for_new_repository
4751
By @TheSast
4852

4953
A fish adaptation of the previous script, run it once in your shell to save it:
54+
5055
```fish
5156
function cd -w='cd'
5257
builtin cd $argv || return
@@ -63,10 +68,10 @@ function check_directory_for_new_repository
6368
end
6469
6570
funcsave cd
66-
funcsave check_directory_for_new_repository
6771
```
6872

6973
By @mbrehin
74+
7075
```sh
7176
# Add Git alias for onefetch.
7277
git config --global alias.project-summary '!which onefetch && onefetch'

0 commit comments

Comments
 (0)