Skip to content

Commit

Permalink
hotfix/randomUpdates (#20)
Browse files Browse the repository at this point in the history
* dictionary update

* using lazyvim

* adding neovim to pnpm packages

* adds bun to path

* Node workflow update
- removes abbreviations for pnpm
- adds `antfu/ni` npm package for running commands in node projects
- formats _aliases.fish
  • Loading branch information
edheltzel authored Sep 11, 2023
1 parent 85c99e7 commit 7f5f090
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 38 deletions.
4 changes: 4 additions & 0 deletions config/vscode/global-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ autotalk
Beavercreek
Bevs
biomejs
bitwarden
browserlist
browsersync
btns
Expand Down Expand Up @@ -50,6 +51,7 @@ Flightdeck
Frontmatter
Fullscreen
ginfuru
githubnext
gitignores
hcomm
heltzel
Expand All @@ -58,6 +60,7 @@ htmlmin
ifel
Incenta
indexnow
intelephense
ishikawa
iterm
jampack
Expand All @@ -67,6 +70,7 @@ linkify
luxon
moxer
Nanotubes
neovim
npmrc
nunjucks
onehalf
Expand Down
8 changes: 1 addition & 7 deletions fish/conf.d/abbr.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if status is-interactive
abbr --add binfo 'brew info'
abbr --add brews 'brew leaves'
abbr --add casks 'brew list --cask'
abbr --add cls 'clear'
abbr --add co 'code .'
abbr --add con 'code -n .'
abbr --add config '~/.config/'
Expand All @@ -23,12 +24,5 @@ if status is-interactive
abbr --add amux 'tmux at -t base'
abbr --add tkill 'tmux kill-session -t'
abbr --add nmux 'tmux new -s "base"'
abbr --add cls 'clear'
abbr --add nad 'pnpm add -D'
abbr --add nag 'pnpm add -g'
abbr --add nun 'pnpm remove'
abbr --add nu 'pnpm update'
abbr --add ni 'pnpm install'
abbr --add nr 'pnpm run'
abbr --add zpurge 'z --clean'
end
3 changes: 3 additions & 0 deletions fish/conf.d/paths.fish
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ test -f '/Users/ed/Library/Preferences/netlify/helper/path.fish.inc' && source '
# uninstall by removing these lines
[ -f ~/.config/tabtab/__tabtab.fish ]; and . ~/.config/tabtab/__tabtab.fish; or true

# Bun
set -g fish_user_paths $HOME/.bun/bin $fish_user_paths

# # Docker
# set -g fish_user_paths $HOME/.docker/bin $fish_user_paths
90 changes: 59 additions & 31 deletions fish/functions/_aliases.fish
Original file line number Diff line number Diff line change
@@ -1,23 +1,51 @@


# Navigation
function .. ; cd .. ; end
function ... ; cd ../.. ; end
function .... ; cd ../../.. ; end
function ..... ; cd ../../../.. ; end
function ..
cd ..
end
function ...
cd ../..
end
function ....
cd ../../..
end
function .....
cd ../../../..
end

function l; command exa -Flagh --sort name --git --icons --group-directories-first $argv; end
function ll; command exa -Flagh --git --icons --group-directories-first --sort modified $argv; end
function la; command exa -Fla --icons; end
function tree; command exa --tree --icons $argv; end
function cll; command clear; and exa -Flah --icons --sort modified $argv; end
function l
command exa -Flagh --sort name --git --icons --group-directories-first $argv
end
function ll
command exa -Flagh --git --icons --group-directories-first --sort modified $argv
end
function la
command exa -Fla --icons
end
function tree
command exa --tree --icons $argv
end
function cll
command clear; and exa -Flah --icons --sort modified $argv
end

# Project shortcuts/aliases
function projects; cd ~/Developer; end
function dev; cd ~/Developer; end
function work; cd ~/Developer/work; end
function dots; cd ~/Developer/dotfiles; end
function cuts; ~/Developer/dotfiles; and eval $EDITOR .; end
function projects
cd ~/Developer
end
function dev
cd ~/Developer
end
function work
cd ~/Developer/work
end
function dots
cd ~/Developer/dotfiles
end
function cuts
~/Developer/dotfiles; and eval $EDITOR .
end

# Language Support
alias pn="pnpm"
Expand All @@ -43,65 +71,65 @@ alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET

# SSH and localhost
function hostfile --description 'Opens local host file in the default editor'
eval sudo $EDITOR /etc/hosts
eval sudo $EDITOR /etc/hosts
end

function lssh --description 'Quickly list all hosts in ssh config'
command grep -w -i "Host" ~/.ssh/config | sed 's/Host//'
command grep -w -i Host ~/.ssh/config | sed s/Host//
end

function editssh --description 'Opens ssh known host file in the default editor'
eval $EDITOR ~/.ssh
eval $EDITOR ~/.ssh
end

# Lighthouse for performance testing
function lh --description 'alias for lighthouse'
set current_date (date "+%Y-%m-%d")
set current_time (date "+%H-%M-%S")
command lighthouse $argv --output=html --output-path=./lighthouse/$current_date__$current_time.html --view
set current_date (date "+%Y-%m-%d")
set current_time (date "+%H-%M-%S")
command lighthouse $argv --output=html --output-path=./lighthouse/$current_date__$current_time.html --view
end

# Docker/Kubernetes/Vagrant
function dk --description 'docker alias'
command docker $argv
command docker $argv
end

function dc --description 'docker-compose alias'
command docker-compose $argv
command docker-compose $argv
end

# Ouch - zip and unzip replacement
function zip --description 'alias for zip using ouch instead of zip'
command ouch compress $argv
command ouch compress $argv
end

function unzip --description 'alias for unzip using ouch instead of unzip'
command ouch decompress $argv
command ouch decompress $argv
end

function listzip --description 'alias to list files files in a zip compression'
command ouch list $argv
command ouch list $argv
end

# Open and Remove/Del shortcuts
function o --description 'alias o=open'
open $argv;
open $argv
end

function oo --description 'alias oo=open .'
open . $argv;
open . $argv
end

function oa --description 'Open App'
open -a /Applications/$argv;
open -a /Applications/$argv
end

function del --description 'alias del=trash'
trash $argv;
trash $argv
end

function sdel --description 'alias sdel=sudo rm -rf'
sudo rm -rf $argv;
sudo rm -rf $argv
end

# Repositiory shortcuts
Expand All @@ -126,6 +154,6 @@ function forrepos --description 'Evaluates $argv for all repo folders'
set repo (basename $d)
echo $repo
eval (abbrex $argv)
popd > /dev/null
popd >/dev/null
end
end
2 changes: 2 additions & 0 deletions packages/pnpm_packages.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@antfu/ni
@bitwarden/cli
@githubnext/github-copilot-cli
corepack
Expand All @@ -7,6 +8,7 @@ generator-code
install
intelephense
lighthouse
neovim
netlify-cli
npm
typescript-language-server
Expand Down

0 comments on commit 7f5f090

Please sign in to comment.