Commit Graph

48 Commits

Author SHA1 Message Date
700406ae94
fix 2023-03-17 21:23:49 -07:00
5f189ce1ee
fix 2023-03-17 21:22:20 -07:00
c2703e0e81
Formatting 2023-03-11 00:04:23 -08:00
2621344af5
swoop 2023-03-10 23:50:42 -08:00
Koichi Murase
c91a85d421 tools/install: Avoid installing .bash_profile when .profile sources .bashrc 2023-03-03 09:52:06 +09:00
Koichi Murase
ebd541c987 tools/install: Fix a bug that the template files is moved 2023-02-26 00:40:15 +09:00
Koichi Murase
99763849a1 tools/uninstall: Make the uninstall script POSIX compliant 2023-02-22 22:15:20 +09:00
Koichi Murase
773efb25e0 tools/upgrade: Apply the same changes as "tools/install.sh" 2023-02-22 22:12:13 +09:00
Koichi Murase
46ee30ced3 tools: Make the style of conditional command more consistent 2023-02-22 22:12:13 +09:00
Abel Sen
8b8a3b31e0
tools: Apply ShellCheck to files in the tools directory (#402)
* Add `.shellcheckrc`
* Apply ShellCheck to `tools/check_for_upgrade.sh`
* Apply ShellCheck to `tools/uninstall.sh`
* Apply ShellCheck to `tools/install.sh`

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-22 21:43:37 +09:00
Koichi Murase
59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
Koichi Murase
f6597af711 tools/install: create "~/.bash_profile" if it doesn't exist 2023-02-05 22:14:03 +09:00
nmarghetti
6fd237c363 tools/install,etc: Add quote around path variables to handle case with space in $HOME or $OSH 2022-10-07 19:47:03 +09:00
nmarghetti
575535636a tools/install: Accept the repository URL through env "OSH_REPOSITORY" 2022-10-07 19:45:11 +09:00
import
14df64e381 tools: import "bash-preexec" from the upstream 2022-10-02 11:18:34 +09:00
Koichi Murase
d5e9c7deb1 tools/install: Refactor "{hash => type -P}" 2022-08-23 18:09:56 +09:00
M
4fb778c405 Refactor "{{which,command -v} => _omb_util_{binary,command}_exists}"
`which` has been deprecated in Debian (at least, the rolling release
installed on chromebooks via Linux Containers)

https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1000974461

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-08-23 18:09:16 +09:00
Koichi Murase
2df8a256f1 tools/install: support "--prefix" for the system-wide installation 2022-07-04 14:06:10 +09:00
Koichi Murase
cb7238fb8f tools/install: update the commandline help 2022-06-12 18:30:11 +09:00
Koichi Murase
9909fff8be tools/upgrade: Use "--git-dir" and "--work-tree" to specify the OMB directory to git (Fix #311) 2022-02-22 18:20:22 +09:00
Jean-Sébastien Hedde
20fa827b89 completions/git: Move the upstream git-completion to subdir "tools" 2022-02-05 13:17:02 +09:00
Koichi Murase
5e9c2d99f0 tools/install: Update the error message for the Bash version 2022-02-04 20:27:06 +09:00
Koichi Murase
e58334b1df tools/upgrade: Print instructions on upgrading failures 2022-01-31 19:34:44 +09:00
Koichi Murase
7dce520857 oh-my-bash: support OMB_VERSION and OMB_VERSINFO 2022-01-19 15:50:18 +09:00
Toan Nguyen
5eaf1a25a4 tools/install: Recommend updating Bash version to 4 or higher
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-19 15:48:54 +09:00
Koichi Murase
16712a41c5 tools/upgrade: Enable upgrading/(un)installing in the interactive shell process 2022-01-15 19:15:09 +09:00
Koichi Murase
bf6960f347 tools/upgrade: Adjust shell quoting 2022-01-12 18:30:28 +09:00
Koichi Murase
463b9c3b8c tools/upgrade: Return to the original working directory after upgrading
Co-authored-by: Rex Roof <github@rexroof.com>
2022-01-12 18:30:28 +09:00
Koichi Murase
1543bc9d4a tools/uninstall: Do not overwrite backup bashrcs
Co-authored-by: Alexandre Alessi <alexpfba@gmail.com>
2022-01-08 15:41:07 +09:00
Koichi Murase
cafb35836e tools/uninstall: Remove "chsh -s /bin/bash"
The code is originated from the uninstallation script for ohmyzsh,
which switches the default shell from Bash to Zsh in its installation.
Oh-my-bash does not change the default shell in its installation, so
there is no need to change it back to /bin/bash in the uninstallation.
2022-01-08 15:41:07 +09:00
Koichi Murase
e6a15f25cc tools/install: Support a new option "--unattended" 2022-01-05 19:34:16 +09:00
James Conroy
636f48dfc4 install: Refactor install.sh
Now the script uses logging functions.
2022-01-05 02:06:48 +09:00
Koichi Murase
5421f3a342 tools/install: Update the Bash-version check 2021-12-29 09:02:42 +09:00
Koichi Murase
703e2864d4 tools/install: Use condtional command 2021-12-29 09:02:39 +09:00
Koichi Murase
c22b97e09a tools/{,un}install: Quote arguments properly 2021-12-29 09:02:36 +09:00
Koichi Murase
b9b2c58c48 tools/install: Fix Bash version check 2021-12-29 09:02:32 +09:00
Koichi Murase
39c9598081 tools/install: Add support termcap-based tput 2021-12-29 09:02:29 +09:00
Toan Nguyen
4941d657dc
tools/autossh: Bypass all shellcheck 2020-03-12 09:29:39 +11:00
Toan Nguyen
697d0d062c
tools/autossh.sh
This is a small script which allows you reconnect to SSH automatically without installing a package like `mosh-server`
2020-03-12 08:13:46 +11:00
Nataraj Basappa
e66772ba24 Fix to check bash version before install (#28)
* Fix to check bash version before install

* Fix for non-zero exit status
2018-08-13 16:29:04 +10:00
Toan Nguyen
b6b3fbfe5d Fix init shell after installed 2017-11-08 16:01:23 +11:00
Toan Nguyen
6dd590ba8b Fix init shell after installed 2017-11-08 15:52:57 +11:00
Toan Nguyen
b85f75f798 Fix few issues & improve framework functionality
- Fixed LSCOLORS from theme-and-appearance.sh
- Fixed ii() command in core plugin
- Stop using .bashrc as Oh-My-Bash profile, use .bash_profile instead
- Automate backport new version for old version users
- Added .editorconfig for future contribution
2017-11-08 15:25:22 +11:00
Toan Nguyen
7b7e0c8c67 Fix repository URL 2017-10-10 18:13:21 +07:00
Toan Nguyen
e65c390bfa Improve oh-my-bash functionality
* Implement aliases, completion in oh-my-bash
 * Added default themes from Bash-it
 * Fixed few issues
2017-10-10 18:07:01 +07:00
Toan Nguyen
ea1c9371e1 Added shebash line and fix some issues 2017-03-20 19:51:00 +07:00
Toan Nguyen
78585ff01b Reload bash config after install/ update 2017-03-19 16:13:33 +07:00
Toan Nguyen
adc673b02a Initial Oh My Bash framework 2017-03-19 15:40:25 +07:00