Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
lhnrd committed Dec 16, 2024
1 parent 8d3f47d commit e9ec336
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 206 deletions.
14 changes: 11 additions & 3 deletions .Brewfile##os.Darwin
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ brew "git-lfs"
brew "rename"
brew "tree"
brew "fd"
brew "asdf"
# brew "asdf"
brew "yadm"

# Zsh custom plugins
brew "zsh-autosuggestions"
brew "zsh-completions"

# Easier documentation for bash commands
Expand Down Expand Up @@ -58,10 +61,15 @@ cask "firefox"
cask "google-chrome"
cask "google-drive"
cask "tomatobar"
cask "1password"
cask "lunar"
# cask "1password"
# cask "betterdisplay"
# cask "lunar"
cask "obsidian"
cask "calibre"
cask "marta"
cask "iina"
cask "jordanbaird-ice"
cask "stats"

# cask "cron"
# cask "docker"
Expand Down
12 changes: 11 additions & 1 deletion .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && kil
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"

# Quickly access dotfiles
alias dotals="${=EDITOR} ~/.aliases"
alias dotboot="${=EDITOR} ~/.config/yadm/bootstrap"
alias dotbrew="${=EDITOR} ~/.Brewfile"
alias dotexp="${=EDITOR} ~/.exports"
alias dotfun="${=EDITOR} ~/.functions"
alias dotmacos="${=EDITOR} ~/.macos"
alias dotrc="${=EDITOR} ~/.zshrc"

# Command-line GUI tool to handle git operations
alias lg="lazygit"

###############################################################################
# Cleanup #
Expand Down Expand Up @@ -120,4 +131,3 @@ alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.ar

# list open internet files and its ports
alias listport="lsof -i"
alias lg="lazygit"
34 changes: 3 additions & 31 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob

# Append to the Bash history file, rather than overwriting it
shopt -s histappend

# Autocorrect typos in path names when using `cd`
shopt -s cdspell
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi

# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`
for option in autocd globstar; do
shopt -s "$option" 2> /dev/null
done

# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2 | tr ' ' '\n')" scp sftp ssh

BREW_PREFIX=$(brew --prefix)

# Add tab completion for many Bash commands
test -f /etc/bash_completion && . /etc/bash_completion
test -f $BREW_PREFIX/etc/bash_completion && . $BREW_PREFIX/etc/bash_completion
test -f $BREW_PREFIX/etc/profile.d/bash_completion.sh && . $BREW_PREFIX/etc/profile.d/bash_completion.sh

# Git auto complete
test -f ~/.git-completion.bash && . ~/.git-completion.bash

# NPM Auto Completion
type npm >/dev/null 2>&1 && . <(npm completion)

# Add `killall` tab completion for common apps
complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall;
Loading

0 comments on commit e9ec336

Please sign in to comment.