Skip to content

Instantly share code, notes, and snippets.

@cwervo
Created August 27, 2019 18:26
Show Gist options
  • Save cwervo/8a21987be4d07866fc728be7ea3e5dc8 to your computer and use it in GitHub Desktop.
Save cwervo/8a21987be4d07866fc728be7ea3e5dc8 to your computer and use it in GitHub Desktop.
My temporary file for my fish config (just trying it out as a shell!)
set fish_greeting "🐶🐶🐶"
# ----------------------- NOTE -------------------
# I'm also using:
# - https://github.com/jorgebucaran/fisher
# - https://github.com/FabioAntunes/fish-nvm
# - https://github.com/oh-my-fish/plugin-rvm (doesn't need omf, can download with `fisher add oh-my-fish/plugin-rvm`)
# - https://github.com/jhillyerd/plugin-git
# - https://github.com/rafaelrinaldi/pure
# I haven't automated downloading these, TODO
# -----------------------------------------------
alias ls='ls -AG'
alias cl="clear && ls"
export EDITOR='nvim'
alias v='$EDITOR'
alias cdcode='cd ~/code'
alias cdco='cd ~/code'
alias vrexif='exiftool -Artist="Andres Cuervo" -ProjectionType="equirectangular"'
alias ltc="lt --subdomain cwervo"
alias clone="git clone"
alias kill-docker-containers='docker kill `docker ps -q`'
alias rgf='rg --files | rg'
# From .zshrc file: ()
# -------------
# Git alias(es)
# -------------
alias git='hub'
alias gitrmignored='git ls-files --ignored --exclude-standard | xargs git rm --cached'
alias gst.='gst .'
# alias gstd='__gstd() {git --git-dir=$HOME/"$1"/.git --work-tree=$HOME/"$1" status};__gstd '
alias gshow='git remote show'
alias gshowo='gshow origin'
# To be used in conjunction with hub: https://hub.github.com/
alias git='hub'
# Go to 'git root'
# unalias gr
function gr
git_root=`git rev-parse --show-toplevel`
cd $git_root
end
# Amend commiting to use GPG signing
# unalias gcmsg
alias gcmsg='git commit -S -m'
# unalias gc
alias gc='git commit -S -v'
# Git diff, no whitespace
alias gd='git diff'
alias gdw='gd -w'
# -----------
# SSH Aliases
# -----------
# Set correct terminal for tmux w/ SSH
alias ssh='TERM=xterm ssh'
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# ssh
export SSH_KEY_PATH="~/.ssh/dsa_id"
# Homebrew CLANG + LLVM magic:
# from: https://embeddedartistry.com/blog/2017/2/20/installing-clangllvm-on-osx
export PATH="/usr/local/opt/llvm/bin:$PATH"
export CC="clang"
export CXX=$CC++
export MAKEFLAGS="-j8 -s"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/cuervoa/code/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/cuervoa/code/google-cloud-sdk/path.zsh.inc'; end
# The next line enables shell command completion for gcloud.
if [ -f '/Users/cuervoa/code/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/cuervoa/code/google-cloud-sdk/completion.zsh.inc'; end
export HOUDINI_UISCALE=160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment