Skip to content

Commit

Permalink
feat: update shell
Browse files Browse the repository at this point in the history
  • Loading branch information
XuCcc committed Aug 27, 2023
1 parent a4caa7e commit fb403a5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
run: ./InitUbuntu.sh -h
- name: basic
run: ./InitUbuntu.sh -b
- name: terminal
run: ./InitUbuntu.sh terminal
- name: shell
run: ./InitUbuntu.sh shell

- name: common
run: ./InitUbuntu.sh common
Expand Down
28 changes: 13 additions & 15 deletions InitUbuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ commonTools() {
info "tldr: Simplified and community-driven man pages"
aptInstall tldr
mkdir -p ~/.local/share
tldr -u
tldr -u | tldr --update
;;
3)
info "ag: A code-searching tool similar to ack, but faster."
Expand Down Expand Up @@ -170,10 +170,8 @@ pythonDevelopEnv() {
javaDevelopEnv() {
case ${1} in
1)
info "Oracle JDK"
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt update >/dev/null
sudo apt install -y oracle-java8-set-default
info "openjdk"
aptInstall openjdk-11-jdk
;;
2)
info "maven: A software project management and comprehension tool"
Expand All @@ -186,7 +184,7 @@ javaScriptDevelopEnv() {
case ${1} in
1)
info "nvm: Node Version Manager - Simple bash script to manage multiple active node.js versions"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.5/install.sh | bash
;;
esac
}
Expand Down Expand Up @@ -269,18 +267,18 @@ help() {
echo " pyenv: Simple Python version management"
echo " pipenv: Python Development Workflow for Humans"
echo "[java]"
echo " jdk: Oracle JDK"
echo " jdk: openjdk-11"
echo " maven: A software project management and comprehension tool"
echo "[javascript]"
echo " nvm: Node Version Manager - Simple bash script to manage multiple active node.js versions"
echo "[docker]"
echo " docker-ce: "
echo " docker-compose: A tool for defining and running multi-container Docker applications"
echo "[terminal]"
echo " oh-my-zsh: a delightful, open source, community-driven framework for managing your Zsh configuration."
echo "[shell]"
echo " zsh: a delightful, open source, community-driven framework for managing your Zsh configuration."
echo " zshrc: Configure ~/.zshrc: Powerlevel10k;Plugins:extract/sudo/zsh-syntax-highlighting/z"
echo " tmux: terminal multiplexer"
echo " Oh my tmux: My self-contained, pretty & versatile tmux configuration"
echo " .tmux: My self-contained, pretty & versatile tmux configuration"
echo
echo "OPTIONS"
echo
Expand Down Expand Up @@ -393,22 +391,22 @@ main() {
"docker docker-compose")
dockerDevelopEnv 2
;;
"terminal")
"shell")
humansTerminal 1
humansTerminal 2
humansTerminal 5
humansTerminal 6
;;
"terminal zsh")
"shell zsh")
humansTerminal 1
;;
"terminal zshrc")
"shell zshrc")
humansTerminal 2
;;
"terminal tmux")
"shell tmux")
humansTerminal 5
;;
"terminal .tmux")
"shell .tmux")
humansTerminal 6
;;
--basic | -b)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ Use `bash InitUbuntu.sh -h` to see support tools and help.
pyenv: Simple Python version management
pipenv: Python Development Workflow for Humans
[java]
jdk: Oracle JDK 8
jdk: openjdk-11
maven: A software project management and comprehension tool
[javascript]
nvm: Node Version Manager - Simple bash script to manage multiple active node.js versions
[docker]
docker-ce:
docker-compose: A tool for defining and running multi-container Docker applications
[terminal]
oh-my-zsh: a delightful, open source, community-driven framework for managing your Zsh configuration.
[shell]
zsh: a delightful, open source, community-driven framework for managing your Zsh configuration.
zshrc: Configure ~/.zshrc: Powerlevel10k;Plugins:extract/sudo/zsh-syntax-highlighting/z
tmux: terminal multiplexer
tmux.conf: Configure ~/.tmux.conf
.tmux: My self-contained, pretty & versatile tmux configuration
```

You can find **zsh&&tmux** profiles in `./config`
Expand Down

0 comments on commit fb403a5

Please sign in to comment.