@@ -63,30 +63,104 @@ chmod +x install.sh
63
63
- If your shell is not detected, manually choose the script from the ` scripts/ ` folder.
64
64
65
65
### 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:
68
67
69
68
#### For Zsh:
70
69
``` zsh
70
+ # Add to ~/.zshrc
71
71
alias upgrade=" ~/scripts/update_packages"
72
72
```
73
73
74
74
#### For Bash:
75
75
``` bash
76
+ # Add to ~/.bashrc or ~/.bash_profile
76
77
alias upgrade=" ~/scripts/update_packages"
77
78
```
78
79
79
80
#### For Fish:
80
81
``` fish
82
+ # Add to ~/.config/fish/config.fish
81
83
alias upgrade="~/scripts/update_packages"
82
84
```
83
85
84
86
#### For NuShell:
85
87
``` nu
88
+ # Add to ~/.config/nushell/config.nu
86
89
alias upgrade = ~/scripts/update_packages
87
90
```
88
91
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
+ ```
90
164
91
165
### Step 4: Run the Script
92
166
Use the ` upgrade ` command to update all your package managers effortlessly:
0 commit comments