-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Linux tests | ||
|
||
Those test is meant to run on linux | ||
|
||
- ubuntu 20.04 LTS | ||
- bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
main() { | ||
|
||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
helper_teardown_tmux() { | ||
rm -rf ~/.tmux.conf | ||
rm -rf ~/.tmux/ | ||
tmux kill-server >/dev/null 2>&1 | ||
} | ||
|
||
helper_tearup_linux_tmux() { | ||
if [[ "$(uname)" != "Linux" ]]; then | ||
echo "NOT LINUX. Failed & exit." | ||
exit 1 | ||
fi | ||
|
||
# install software | ||
sudo apt update -y | ||
sudo apt install -y tmux git | ||
|
||
# download TPM | ||
mkdir -p ~/.tmux/plugins/ | ||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | ||
} | ||
|
||
helper_print_fail_and_exit() { | ||
local _msg="${1:-}" | ||
printf "FAIL. %s\n" "${_msg}" | ||
exit 1 | ||
} | ||
|
||
helper_print_success_and_exit() { | ||
local _msg="${1:-}" | ||
printf "SUCCESS. %s\n" "${_msg}" | ||
exit 0 | ||
} | ||
|
||
# install TMP plugins with command | ||
helper_install_tpm_plugins() { | ||
bash -c "${HOME}/.tmux/plugins/tpm/scripts/install_plugins.sh install_plugins" | ||
} |