Update dotfiles/.bash_logout, dotfiles/.profile, dotfiles/.bashrc, dotfiles/.zshrc
This commit is contained in:
parent
cf0f8f58ef
commit
57e7cd5756
4 changed files with 11 additions and 11 deletions
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
if [ "$SHLVL" = 1 ]; then
|
if [ "$SHLVL" = 1 ]; then
|
||||||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -229,13 +229,13 @@ export MCFLY_KEY_SCHEME=vim
|
||||||
[ -f ~/.local/fzf.bash ] && source ~/.local/fzf.bash
|
[ -f ~/.local/fzf.bash ] && source ~/.local/fzf.bash
|
||||||
|
|
||||||
### Google Cloud SDK
|
### Google Cloud SDK
|
||||||
if type brew &> /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
|
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
|
||||||
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"
|
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### zoxide
|
### zoxide
|
||||||
type zoxide &> /dev/null && eval "$(zoxide init bash)"
|
command -v zoxide > /dev/null && eval "$(zoxide init bash)"
|
||||||
|
|
||||||
### Fig
|
### Fig
|
||||||
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && . "$HOME/.fig/shell/bashrc.post.bash"
|
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && . "$HOME/.fig/shell/bashrc.post.bash"
|
||||||
|
|
|
@ -61,10 +61,10 @@ down4me() {
|
||||||
|
|
||||||
# GAM - a command-line tool for Google Workspace. This alias will run gam or install gam if it is not already installed.
|
# GAM - a command-line tool for Google Workspace. This alias will run gam or install gam if it is not already installed.
|
||||||
gam() {
|
gam() {
|
||||||
if type gam &> /dev/null; then
|
if command -v gam > /dev/null; then
|
||||||
gam "$@"
|
gam "$@"
|
||||||
else
|
else
|
||||||
bash <(curl -s -S -L https://git.io/install-gam)
|
TMP="$(mktemp)" && curl -sSL https://git.io/install-gam > "$TMP" && bash "$TMP"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ provision () {
|
||||||
|
|
||||||
# Run the quickstart script
|
# Run the quickstart script
|
||||||
quickstart() {
|
quickstart() {
|
||||||
if type qvm-run &> /dev/null; then
|
if command -v qvm-run > /dev/null; then
|
||||||
qvm-run --pass-io personal "curl -sSL https://install.doctor/qubes" > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
qvm-run --pass-io personal "curl -sSL https://install.doctor/qubes" > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
||||||
elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then
|
elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then
|
||||||
curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
||||||
|
@ -118,7 +118,7 @@ randomstring() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Launch rclone admin GUI
|
# Launch rclone admin GUI
|
||||||
rclone-gui() {
|
rclonegui() {
|
||||||
rclone rcd --rc-web-gui --rc-user=admin --rc-pass=pass --rc-serve
|
rclone rcd --rc-web-gui --rc-user=admin --rc-pass=pass --rc-serve
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ if [ -f "$HOME/.cargo/env" ]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type brew &> /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
### Go
|
### Go
|
||||||
export GOPATH="${HOME}/.local/go"
|
export GOPATH="${HOME}/.local/go"
|
||||||
export GOROOT="$(brew --prefix golang)/libexec"
|
export GOROOT="$(brew --prefix golang)/libexec"
|
||||||
|
|
|
@ -341,7 +341,7 @@ find() {
|
||||||
### Antigen
|
### Antigen
|
||||||
[[ ! -f ~/.local/antigen.zsh ]] || source ~/.local/antigen.zsh
|
[[ ! -f ~/.local/antigen.zsh ]] || source ~/.local/antigen.zsh
|
||||||
|
|
||||||
if type antigen &> /dev/null; then
|
if command -v antigen > /dev/null; then
|
||||||
antigen use oh-my-zsh
|
antigen use oh-my-zsh
|
||||||
antigen bundle git
|
antigen bundle git
|
||||||
antigen bundle bundler
|
antigen bundle bundler
|
||||||
|
@ -362,7 +362,7 @@ fi
|
||||||
[ -f ~/.local/fzf.zsh ] && source ~/.local/fzf.zsh
|
[ -f ~/.local/fzf.zsh ] && source ~/.local/fzf.zsh
|
||||||
|
|
||||||
### Google Cloud SDK
|
### Google Cloud SDK
|
||||||
if type brew &> /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
|
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
|
||||||
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
|
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
|
||||||
fi
|
fi
|
||||||
|
@ -372,7 +372,7 @@ fpath+=~/.zfunc
|
||||||
|
|
||||||
### zoxide
|
### zoxide
|
||||||
# TODO: Ensure zoxide.vim is installed
|
# TODO: Ensure zoxide.vim is installed
|
||||||
type zoxide &> /dev/null && eval "$(zoxide init zsh)"
|
command -v zoxide > /dev/null && eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
### Fig
|
### Fig
|
||||||
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && . "$HOME/.fig/shell/zshrc.post.zsh"
|
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && . "$HOME/.fig/shell/zshrc.post.zsh"
|
||||||
|
|
Loading…
Reference in a new issue