Skip to content

Commit

Permalink
commonrc: use ksshaskpass if present
Browse files Browse the repository at this point in the history
Use it for git credentials. Hence we do not need to store is as plain
text.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed Apr 16, 2024
1 parent e99f733 commit 6969a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commonrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ alias cross_cc_arm64='export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-'

# this one is used in system like arch to check latest packages installed
command -v expac >/dev/null 2>&1 && alias expac='expac --timefmt "%Y-%m-%d %T" "%l\t%n" | sort'
# to handle git credentials
command -v ksshaskpass > /dev/null && export SSH_ASKPASS=/usr/bin/ksshaskpass

# based on aosp. Sometimes useful but often not need when working on a git tree
cgrep() {
Expand Down

0 comments on commit 6969a95

Please sign in to comment.