fish!
This commit is contained in:
parent
1efd921d21
commit
a2f589a9ed
|
@ -48,7 +48,7 @@ map <Leader>v :WhichKey<CR>
|
|||
|
||||
|
||||
set tabstop=2
|
||||
set shell=/bin/zsh
|
||||
set shell=/usr/bin/zsh
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
set hidden
|
||||
|
@ -148,20 +148,21 @@ endfunction
|
|||
lua <<EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||
ensure_installed = "maintained",
|
||||
ensure_installed = "all",
|
||||
|
||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
|
||||
-- List of parsers to ignore installing
|
||||
ignore_install = {},
|
||||
|
||||
highlight = {
|
||||
-- `false` will disable the whole extension
|
||||
enable = true,
|
||||
enable = false,
|
||||
|
||||
-- list of language that will be disabled
|
||||
disable = { "c", "rust" },
|
||||
disable = {"vim"},
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
|
||||
# ALIASES
|
||||
alias kubectl=/opt/homebrew/Cellar/kubernetes-cli@1.22/1.22.10/bin/kubectl
|
||||
alias ibrew="arch -x86_64 /usr/local/bin/brew"
|
||||
|
||||
|
||||
# FUNCTIONS
|
||||
function poweruser ()
|
||||
aws sso login --profile=poweruser
|
||||
end
|
||||
function powerpip ()
|
||||
aws codeartifact login --tool pip --repository internal --domain eq-remarketing --profile poweruser
|
||||
end
|
||||
|
||||
function kubestaging ()
|
||||
kubectl config use-context shared1-east1-us-staging
|
||||
kubectl config set-context --current --namespace=remarketing
|
||||
end
|
||||
|
||||
function kubeprod ()
|
||||
kubectl config use-context shared1-east1-us-prod
|
||||
kubectl config set-context --current --namespace=remarketing
|
||||
end
|
||||
function setup_crypto ()
|
||||
# Needed for cryptography
|
||||
export LDFLAGS="$LDFLAGS -L(brew --prefix openssl@1.1)/lib"
|
||||
export CFLAGS="$CFLAGS -I(brew --prefix openssl@1.1)/include"
|
||||
end
|
||||
|
||||
function brew_venv_39 ()
|
||||
set brewpy (brew --cellar python@3.9)
|
||||
$brewpy/3.9.10/bin/python3 -m venv venv
|
||||
end
|
||||
function brew_venv_37 ()
|
||||
/usr/local/opt/python@3.7/bin/python3 -m venv venv
|
||||
end
|
||||
# Prompts for aurora password and doesn't echo it to the terminal, safer for history
|
||||
function set_aurora ()
|
||||
echo -ne "Aurora Username: "
|
||||
read -rs AURORA_USERNAME
|
||||
export AURORA_USERNAME
|
||||
|
||||
echo -ne "\nAurora Password: "
|
||||
read -rs AURORA_PASSWORD
|
||||
export AURORA_PASSWORD
|
||||
echo "\nSet username/password for $AURORA_USERNAME"
|
||||
end
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#!//bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
# ALIASES
|
||||
alias kubectl=/opt/homebrew/Cellar/kubernetes-cli@1.22/1.22.10/bin/kubectl
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/local/bin/zsh
|
||||
#!/bin/bash
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
#!/usr/bin/fish
|
||||
set -x EDITOR nvim
|
||||
set -x VISUAL nvim
|
||||
|
||||
# Aliases
|
||||
alias ag='\ag --pager="less -r"'
|
||||
alias c='\cat'
|
||||
alias cat='bat'
|
||||
alias cg='cd "(git rev-parse --show-toplevel)"'
|
||||
alias dots='cd ~/code/dotfiles/'
|
||||
alias fuckingip="curl https://wtfismyip.com/json"
|
||||
alias g='git'
|
||||
alias gp='git push -u'
|
||||
alias httpie="http"
|
||||
alias ls="exa -lhFgxUm --git --time-style long-iso --group-directories-first"
|
||||
alias pg='pushd "(git rev-parse --show-toplevel)"'
|
||||
alias ppjson="python -m json.tool"
|
||||
alias shrug="echo -n '¯\_(ツ)_/¯' | pbcopy"
|
||||
alias vimini="vim ~/.config/nvim/init.vim"
|
||||
|
||||
# Functions
|
||||
function httpdiff
|
||||
diff --color -r -c <(curl -s "$1" 2>&1) <(curl -s "$2" 2>&1)
|
||||
end
|
||||
|
||||
function cpbr
|
||||
set branch (git symbolic-ref --short -q HEAD)
|
||||
if test branch
|
||||
then
|
||||
printf "$branch" | pbcopy
|
||||
osascript -e "display notification \"$branch copied to clipboard\" with title \"cpbr\""
|
||||
else
|
||||
echo "no branch, can't copy"
|
||||
end
|
||||
end
|
||||
|
||||
function settitle
|
||||
echo -ne "\033]0;"$argv"\007"
|
||||
end
|
||||
|
||||
|
||||
function pullall
|
||||
for d in ./*/ ; do (cd "$d" && pwd && git pull); end
|
||||
end
|
||||
|
||||
function gh_mainall
|
||||
for d in ./*/ ; do (cd "$d" && pwd && git checkout main && git pull); end
|
||||
end
|
||||
|
||||
function allbranches
|
||||
for d in ./*/ ; do (cd "$d" && pwd && git remote -v origin && git pull); end
|
||||
end
|
||||
|
||||
function new_dock_space
|
||||
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
|
||||
end
|
||||
|
||||
# Jupyter lab!
|
||||
function lab
|
||||
source ~/JUPYTER/bin/activate
|
||||
cd ~/scratch
|
||||
powerpip
|
||||
pip install -r jupyter_requirements.txt
|
||||
jupyter lab
|
||||
deactivate
|
||||
end
|
||||
|
||||
source ~/code/dotfiles/jobs/everquote.fish
|
Loading…
Reference in New Issue