Creates the following files: .bashrc, .bash_aliases, .bash_profile, .bash_logout in dir.

term_bash(dir = Sys.getenv("HOME"), overwrite = FALSE, vars = NULL)

Arguments

dir

Character string. .bash* directory. Defaults to user's home directory.

overwrite

Logical. Overwrite existing bash dot files in dir.

vars

Named character vector. Variables to export. (e.g., vars = c(GITHUB_PAT = "token_here", TRAVIS_TOKEN = "token_here").

Examples

if (FALSE) { term_bash( dir = getwd(), overwrite = TRUE, vars = c( GITHUB_PAT = "123456", TRAVIS_TOKEN = "123456" ) ) }