Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cupric
zsh
Commits
018d5373
Commit
018d5373
authored
3 years ago
by
cupric
Browse files
Options
Download
Email Patches
Plain Diff
added check for zsh before blinding changing to a shell that may (or may not) exist
parent
63f014f6
master
fzf
temp
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init.sh
+3
-3
init.sh
with
3 additions
and
3 deletions
+3
-3
init.sh
+
3
-
3
View file @
018d5373
...
...
@@ -14,8 +14,7 @@ deb_install () {
sudo
apt
install
$1
-y
}
dep_check
()
{
# Checks for zsh, git, curl, fzy, and antibody
dep_check
()
{
# Checks for zsh, git, curl, fzy, and antibody
type
zsh
>
/dev/null 2>&1
||
{
deb_install
"zsh"
;
}
type
git
>
/dev/null 2>&1
||
{
deb_install
"git"
;
}
...
...
@@ -40,7 +39,8 @@ install_antibody () {
}
check_zsh
()
{
chsh
-s
/bin/zsh
# Change shell if zsh was installed
type
zsh
>
/dev/null 2>&1
||
{
chsh
-s
/bin/zsh
}
}
directory_clean
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets