Reanranging + Some useful shortcut
Still TODO: make sure each file is loaded only when it's supporting prereqs exist
This commit is contained in:
parent
0bce670c63
commit
786431f769
|
@ -0,0 +1,21 @@
|
||||||
|
function gcp_project() {
|
||||||
|
gcloud config get-value core/project 2> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
function gcp_get_project_id() {
|
||||||
|
gcloud projects list \
|
||||||
|
--filter="$1" \
|
||||||
|
--format="value(project_id)" \
|
||||||
|
2> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
function gcp_get_project_number() {
|
||||||
|
gcloud projects list \
|
||||||
|
--filter="project_id:$1" \
|
||||||
|
--format='value(project_number)' \
|
||||||
|
2> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
function gcp_region() {
|
||||||
|
gcloud config get-value compute/region 2> /dev/null
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
setxkbmap -option
|
||||||
|
setxkbmap -option caps:escape
|
||||||
|
setxkbmap -option caps:ctrl_modifier
|
|
@ -0,0 +1,7 @@
|
||||||
|
export HISTCONTROL=ignoreboth:erasedups # no duplicate entries
|
||||||
|
export HISTSIZE=100000 # big big history
|
||||||
|
export HISTFILESIZE=100000 # big big history
|
||||||
|
shopt -s histappend # append to history, don't overwrite it
|
||||||
|
|
||||||
|
# Save and reload the history after each command finishes
|
||||||
|
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
|
@ -0,0 +1,2 @@
|
||||||
|
source <(pip completion --bash)
|
||||||
|
|
Loading…
Reference in New Issue