diff --git a/bash/alias.sh b/bash/alias.sh index 0ad87e2..ac9122a 100644 --- a/bash/alias.sh +++ b/bash/alias.sh @@ -25,3 +25,7 @@ alias br="bundle exec rails" # Go alias goi="go install ./..." alias gg='rg -g "*.go"' + +alias ytdl="youtube-dl -f 'bestvideo+bestaudio'" +alias cr="cargo run --quiet --" + diff --git a/bash/prompt.sh b/bash/prompt.sh index 5c33f71..6b4655d 100644 --- a/bash/prompt.sh +++ b/bash/prompt.sh @@ -5,12 +5,13 @@ function __bash_prompt { __window_title $baseDir # Define building blocks - local basedir="$_BOLD$_BLUE\W$_RESET_COLOR$_RESET" + local userhost="$_BOLD$_BLUE\u@\h$_RESET_COLOR$_RESET" + local basedir="$_BOLD$_GREEN\W$_RESET_COLOR$_RESET" local git_y_u_no_commit="$_MAGENTA$(__bash_git_y_u_no_commit_warn)$_RESET_COLOR" local git_branch="$(__bash_prompt_git)" local cursor="\[${_DIM}\]›\[$_RESET\]" - PS1="\n$basedir$git_branch$git_y_u_no_commit\n$cursor\[$_RESET\] " + PS1="\n$userhost $basedir$git_branch$git_y_u_no_commit\n$cursor\[$_RESET\] " } PROMPT_COMMAND=__bash_prompt # <--- ta-da!