Skip to content

Instantly share code, notes, and snippets.

@sdellysse
Last active March 2, 2021 14:38
Show Gist options
  • Save sdellysse/6169395a5915c9e639908f3ad3998b1d to your computer and use it in GitHub Desktop.
Save sdellysse/6169395a5915c9e639908f3ad3998b1d to your computer and use it in GitHub Desktop.

All terminals should open with a login shell.

if (os === "macOS") :

  • leave shell as zsh
  • Terminal.app -> Prefs -> Pro -> Shell tab
  • run command /usr/local/bin/fish not in a shell
  • add -fish to close-without-warning
  • set Pro as default profile

if (os !== "macOS") :

  • Set shell to bash
  • remove all sh startup files
  • ~/.profile:
  • if [ -t 0 ] && [ "$SHELL" != "$( which fish )" ]; then
        export SHELL="$( which fish )"
    
        if shopt -q login_shell; then
            exec -l "$SHELL" "$@"
        else
            exec "$SHELL" "$@"
        fi
    fi
    
    

if (true) :

  • ~/.config/fish/config.fish:
  • set fish_greeting
    set --global --export EDITOR /usr/local/bin/code --wait
    starship init fish | source
    
    
    

Current Brewfile:

tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"

cask "1password"
cask "adguard"
cask "altserver"
cask "balenaetcher"
cask "checkra1n"
cask "crossover"
brew "direnv"
cask "discord"
brew "ffmpeg"
brew "fish"
mas "Honey", id: 1472777122
brew "htop"
mas "Hush", id: 1544743900
cask "jiggler"
brew "jq"
brew "mas"
brew "nativefier"
brew "node"
cask "paintbrush"
cask "plex"
cask "scroll-reverser"
cask "sensiblesidebuttons"
brew "starship"
cask "teamviewer"
cask "textual"
cask "the-unarchiver" 
cask "transmission"
cask "visual-studio-code"
brew "youtube-dl"

## brewopts: --no-lock --cleanup --zap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment