forked from isair/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(profiles): back up personal profile
- Loading branch information
Showing
5 changed files
with
21 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
# Fig pre block. Keep at the top of this file. | ||
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && . "$HOME/.fig/shell/bashrc.pre.bash" | ||
|
||
# Source secrets file which holds environment | ||
# variables for things such as tokens | ||
source "$HOME/.secrets" | ||
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash" | ||
|
||
# | ||
# Setup | ||
# | ||
|
||
source "$HOME"/.dotfiles-shared/shrc-setup-homebrew | ||
source "$HOME"/.dotfiles-shared/shrc-setup-thefuck | ||
source "$HOME"/.dotfiles-shared/shrc-setup-nvm | ||
source "$HOME"/.dotfiles-shared/shrc-setup-android-studio | ||
|
||
# Use Java 1.8 by default, because react-native | ||
if [[ "${OSTYPE}" == darwin* ]]; then | ||
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" | ||
fi | ||
|
||
# | ||
# Utility Functions | ||
# | ||
|
||
source "$HOME"/.dotfiles-shared/shrc-utility | ||
|
||
# Fig post block. Keep at the bottom of this file. | ||
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && . "$HOME/.fig/shell/bashrc.post.bash" | ||
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Fig pre block. Keep at the top of this file. | ||
[[ -f "$HOME/.fig/shell/profile.pre.bash" ]] && . "$HOME/.fig/shell/profile.pre.bash" | ||
|
||
[[ -f "$HOME/.fig/shell/profile.pre.bash" ]] && builtin source "$HOME/.fig/shell/profile.pre.bash" | ||
export LANG=en_GB.UTF-8 | ||
|
||
# Fig post block. Keep at the bottom of this file. | ||
[[ -f "$HOME/.fig/shell/profile.post.bash" ]] && . "$HOME/.fig/shell/profile.post.bash" | ||
[[ -f "$HOME/.fig/shell/profile.post.bash" ]] && builtin source "$HOME/.fig/shell/profile.post.bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,30 @@ | ||
# Fig pre block. Keep at the top of this file. | ||
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && . "$HOME/.fig/shell/zshrc.pre.zsh" | ||
|
||
# Source secrets file which holds environment | ||
# variables for things such as tokens | ||
source "$HOME/.secrets" | ||
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" | ||
|
||
# | ||
# Setup | ||
# | ||
|
||
source "$HOME"/.dotfiles-shared/shrc-setup-zsh | ||
source "$HOME"/.dotfiles-shared/shrc-setup-homebrew | ||
source "$HOME"/.dotfiles-shared/shrc-setup-thefuck | ||
source "$HOME"/.dotfiles-shared/shrc-setup-nvm | ||
source "$HOME"/.dotfiles-shared/shrc-setup-chruby | ||
source "$HOME"/.dotfiles-shared/shrc-setup-android-studio | ||
|
||
# Use Java 1.8 by default, because react-native | ||
if [[ "${OSTYPE}" == darwin* ]]; then | ||
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8 | grep jdk)" | ||
fi | ||
|
||
# Set default editors | ||
export VISUAL=vim | ||
export EDITOR="${VISUAL}" | ||
export REACT_EDITOR=code | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
source "$HOME"/.dotfiles-shared/shrc-alias-git | ||
|
||
alias .p="cd ~/projects" | ||
|
||
alias .bin="bundle install --path=vendor/bundle" | ||
alias .bup="bundle update" | ||
alias .bx="bundle exec" | ||
|
||
alias .pin="pod install" | ||
alias .pup="pod update" | ||
|
||
alias .cloud="sudo ifconfig awdl0 down" | ||
|
||
# | ||
# Utility Functions | ||
# | ||
|
||
source "$HOME"/.dotfiles-shared/shrc-utility | ||
|
||
# | ||
# Custom Shell Prompt | ||
# | ||
|
||
eval "$(starship init zsh)" | ||
# tabtab source for packages | ||
# uninstall by removing these lines | ||
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true | ||
|
||
# Fig post block. Keep at the bottom of this file. | ||
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && . "$HOME/.fig/shell/zshrc.post.zsh" | ||
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters