1
0
Fork 0

Update stuff

This commit is contained in:
Gregory Eremin 2019-08-30 12:40:25 +02:00
parent dce4d97dc8
commit 94f6b92dab
7 changed files with 43 additions and 14 deletions

View File

@ -2,14 +2,13 @@
alias ll="ls -lAFh" alias ll="ls -lAFh"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias sub="subl ." alias dedup="awk '!visited[$0]++'"
alias sdot="subl ~/Dotfiles"
# Git # Git
alias git="git-achievements" alias git="git-achievements"
alias ga="git add -u; git add .; git status -sb" alias ga="git add -u; git add .; git status -sb"
alias gb="git branch -v" alias gb="git branch -v"
alias gc="git ci -S --allow-empty -m" alias gc="git ci --allow-empty -m"
alias gd="git diff" alias gd="git diff"
alias gdc="git diff --cached" alias gdc="git diff --cached"
alias gl="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold alias gl="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold
@ -22,9 +21,12 @@ alias gml="git merge - --no-edit"
# Ruby # Ruby
alias bd="bundle install --jobs=8 --path vendor/bundle" alias bd="bundle install --jobs=8 --path vendor/bundle"
alias b="bundle exec"
alias br="bundle exec rails"
# Go # Go
alias goi="go install ./..." alias goi="go install ./..."
alias gg='rg -g "*.go"'
# OSX # OSX
alias hide-desktop="defaults write com.apple.finder CreateDesktop -bool false; killall Finder" alias hide-desktop="defaults write com.apple.finder CreateDesktop -bool false; killall Finder"

View File

@ -12,9 +12,9 @@ export EDITOR=vim
export PROJECTS=$HOME/Code export PROJECTS=$HOME/Code
# Go # Go
export GOROOT=/usr/local/golang # export GOROOT=$HOME/go/lang
export GOPATH=/usr/local/gopath export GOPATH=$HOME/go/path
export CGO_ENABLED=0 # export CGO_ENABLED=0
# Bash stuff # Bash stuff
@ -40,4 +40,13 @@ fi
# Misc # Misc
# #
alias ag=rg
# export SSL_CERT_FILE="/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt" # export SSL_CERT_FILE="/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt"
export PATH="/usr/local/opt/avr-gcc@8/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
export PATH="$HOME/.cargo/bin:$PATH"

View File

@ -1,6 +1,7 @@
export PATH=/usr/local/bin:$PATH # Homebrew tools export PATH=/usr/local/bin:$PATH # Homebrew tools
export PATH=$PATH:/usr/local/sbin # Homebrew apps export PATH=$PATH:/usr/local/sbin # Homebrew apps
export PATH=$PATH:$HOME/Dotfiles/bin # My stuff export PATH=$PATH:$HOME/Dotfiles/bin # My stuff
export PATH=$PATH:$HOME/.bin
# NodeJS # NodeJS
# export PATH=$PATH:/usr/local/share/npm/bin # export PATH=$PATH:/usr/local/share/npm/bin
@ -13,9 +14,15 @@ export PATH=$HOME/.rbenv/shims:$PATH # Gem binaries
export PATH=$PATH:$PROJECTS/git-achievements export PATH=$PATH:$PROJECTS/git-achievements
# Go # Go
export PATH=$PATH:$GOROOT/bin # Go runtime binaries # export PATH=$PATH:$GOROOT/bin # Go runtime binaries
export PATH=$PATH:$HOME/go/lang/bin # Go package binaries
export PATH=$PATH:$GOPATH/bin # Go package binaries export PATH=$PATH:$GOPATH/bin # Go package binaries
# Python # Python
# WTF # WTF
export PKG_CONFIG_PATH=/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.4/lib/pkgconfig export PKG_CONFIG_PATH=/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.4/lib/pkgconfig
export PATH=$PATH:/usr/local/Cellar/llvm/8.0.0_1/bin
# Rust
export PATH=$PATH:$HOME/.cargo/bin

View File

@ -2,8 +2,8 @@ GIT="/usr/local/bin/git"
function __bash_prompt { function __bash_prompt {
local baseDir=$(__bash_basedir) local baseDir=$(__bash_basedir)
__iterm_set_title $baseDir
__iterm_set_bg_color_by_dir $baseDir __iterm_set_bg_color_by_dir $baseDir
__iterm_set_title $baseDir
# Define building blocks # Define building blocks
local basedir="$_BOLD$_BLUE\W$_RESET_COLOR$_RESET" local basedir="$_BOLD$_BLUE\W$_RESET_COLOR$_RESET"
@ -45,7 +45,11 @@ function __bash_git_y_u_no_commit_warn {
function __bash_git_branch { function __bash_git_branch {
__bash_is_git_dir && { __bash_is_git_dir && {
$GIT rev-parse --symbolic-full-name --abbrev-ref HEAD __bash_is_git_new_repo && {
echo -ne "[NEW REPO]"
} || {
$GIT rev-parse --symbolic-full-name --abbrev-ref HEAD
}
} }
} }
@ -62,3 +66,8 @@ function __bash_git_is_pushed {
function __bash_is_git_dir { function __bash_is_git_dir {
if [ -d ".git" ]; then return 0; else return 1; fi if [ -d ".git" ]; then return 0; else return 1; fi
} }
# Returns 1 if there are no existing commits in the repo
function __bash_is_git_new_repo {
__bash_is_empty $($GIT rev-list --all --parents --max-count=1)
}

View File

@ -14,3 +14,6 @@ vendor/gems
# Vim # Vim
*.swp *.swp
*.swo *.swo
# VSCode
*.code-workspace

View File

@ -1 +1 @@
gem: --no-ri --no-rdoc gem: --no-document

View File

@ -2,7 +2,7 @@
"animation_enabled": false, "animation_enabled": false,
"caret_style": "phase", "caret_style": "phase",
"close_windows_when_empty": false, "close_windows_when_empty": false,
"color_scheme": "Packages/Colorsublime - Themes/peacocks-in-space.tmTheme", "color_scheme": "Packages/Colorsublime - Themes/Dracula.tmTheme",
"default_line_ending": "unix", "default_line_ending": "unix",
"drag_text": false, "drag_text": false,
"draw_minimap_border": false, "draw_minimap_border": false,
@ -20,17 +20,16 @@
".bundle", ".bundle",
".sass-cache", ".sass-cache",
"__pycache__", "__pycache__",
"vendor",
"node-modules" "node-modules"
], ],
"font_face": "Inconsolata", "font_face": "Hack",
"font_options": "font_options":
[ [
"subpixel_antialias", "subpixel_antialias",
"no_bold", "no_bold",
"no_italic" "no_italic"
], ],
"font_size": 18.0, "font_size": 12.0,
"gpu_window_buffer": true, "gpu_window_buffer": true,
"gutter": true, "gutter": true,
"highlight_line": true, "highlight_line": true,