Skip to content

Commit a83e911

Browse files
committed
Expand README.md to include detailed alias setup instructions for various shell environments, enhancing user guidance for the upgrade command. Added support for Korn Shell, C Shell, Dash, Elvish, Xonsh, BusyBox, and POSIX Shell, ensuring comprehensive coverage for users across different platforms.
1 parent b22a39d commit a83e911

File tree

1 file changed

+77
-3
lines changed

1 file changed

+77
-3
lines changed

README.md

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,104 @@ chmod +x install.sh
6363
- If your shell is not detected, manually choose the script from the `scripts/` folder.
6464

6565
### Step 3: Add Alias to Your Shell Configuration
66-
To simplify usage, add an alias to your shell configuration
67-
(e.g., `nano ~/.zshrc` for Zsh):
66+
To simplify usage, add an alias to your shell configuration file:
6867

6968
#### For Zsh:
7069
```zsh
70+
# Add to ~/.zshrc
7171
alias upgrade="~/scripts/update_packages"
7272
```
7373

7474
#### For Bash:
7575
```bash
76+
# Add to ~/.bashrc or ~/.bash_profile
7677
alias upgrade="~/scripts/update_packages"
7778
```
7879

7980
#### For Fish:
8081
```fish
82+
# Add to ~/.config/fish/config.fish
8183
alias upgrade="~/scripts/update_packages"
8284
```
8385

8486
#### For NuShell:
8587
```nu
88+
# Add to ~/.config/nushell/config.nu
8689
alias upgrade = ~/scripts/update_packages
8790
```
8891

89-
Save and reload your shell configuration (e.g., `source ~/.zshrc` for Zsh).
92+
#### For Korn Shell (KSH):
93+
```ksh
94+
# Add to ~/.kshrc
95+
alias upgrade="~/scripts/update_packages"
96+
```
97+
98+
#### For C Shell (CSH):
99+
```csh
100+
# Add to ~/.cshrc
101+
alias upgrade ~/scripts/update_packages
102+
```
103+
104+
#### For Dash:
105+
```sh
106+
# Add to ~/.dashrc or ~/.profile
107+
alias upgrade="~/scripts/update_packages"
108+
```
109+
110+
#### For Elvish:
111+
```elvish
112+
# Add to ~/.elvish/rc.elv
113+
fn upgrade { ~/scripts/update_packages }
114+
```
115+
116+
#### For Xonsh:
117+
```python
118+
# Add to ~/.xonshrc
119+
aliases['upgrade'] = '~/scripts/update_packages'
120+
```
121+
122+
#### For BusyBox:
123+
```sh
124+
# Add to ~/.profile or /etc/profile
125+
alias upgrade="~/scripts/update_packages"
126+
```
127+
128+
#### For POSIX Shell:
129+
```sh
130+
# Add to ~/.profile
131+
alias upgrade="~/scripts/update_packages"
132+
```
133+
134+
After adding the alias, reload your shell configuration:
135+
136+
```bash
137+
# For Zsh
138+
source ~/.zshrc
139+
140+
# For Bash
141+
source ~/.bashrc # or source ~/.bash_profile
142+
143+
# For Fish
144+
source ~/.config/fish/config.fish
145+
146+
# For NuShell
147+
source ~/.config/nushell/config.nu
148+
149+
# For KSH
150+
source ~/.kshrc
151+
152+
# For CSH
153+
source ~/.cshrc
154+
155+
# For Dash/POSIX/BusyBox
156+
. ~/.profile
157+
158+
# For Elvish
159+
exec elvish
160+
161+
# For Xonsh
162+
source ~/.xonshrc
163+
```
90164

91165
### Step 4: Run the Script
92166
Use the `upgrade`command to update all your package managers effortlessly:

0 commit comments

Comments
 (0)