Let's talk about Terminals

Let's talk about Terminals

fbnlsr

Member
Local time
18:10
Joined
Oct 13, 2019
Messages
78

I've been using iTerm2 on my mac for years, but ever since they've changed their UI, I'm not digging it as much as I did at the start.

What's a good alternative? I need something simple, fast, with supports for tabs and I'll be running oh-my-zsh on it.

 

Adam

Mr. Webwide
Administrator
Local time
17:10
Joined
Sep 24, 2019
Messages
1,243
Pronouns
he/him

Oh man, I’ve just been using Terminal.app all these years! Looking forward to trying out some new recommendations.

 

Gummibeer

Astroneer
Moderator
Local time
18:10
Joined
Oct 5, 2019
Messages
1,150
Pronouns
he/him

By the way: I use Spacefish as my prompt. A nice prompt makes using the terminal so much nicer!
Thanks for pointing out. I still use the standard MacOS terminal and am happy with. But after your link I've seen starship/starship which seems to be a theme on steroids for, also, the default terminal.
Will try it next time! It looks super promising!

 

fbnlsr

Member
Local time
18:10
Joined
Oct 13, 2019
Messages
78

I'll be honest, I never understood the differences between the different Shells... Bash, Zsh, Fish, etc... What's better? I'm using Zsh because a friend of mine suggested I should use oh-my-zsh since it's filled with a ton of shortcuts/helpers, but I don't even know if it's the "right" choice.

 

27leaves

Member
Local time
18:10
Joined
Oct 20, 2019
Messages
30

I'll be honest, I never understood the differences between the different Shells... Bash, Zsh, Fish, etc... What's better? I'm using Zsh because a friend of mine suggested I should use oh-my-zsh since it's filled with a ton of shortcuts/helpers, but I don't even know if it's the "right" choice.
Same here 😅

 

joshmanders

Full Snack Developer
Local time
11:10
Joined
Dec 4, 2019
Messages
40

I'll be honest, I never understood the differences between the different Shells... Bash, Zsh, Fish, etc... What's better? I'm using Zsh because a friend of mine suggested I should use oh-my-zsh since it's filled with a ton of shortcuts/helpers, but I don't even know if it's the "right" choice.
Same here 😅

Bash is good if all you want is a few helpers in your terminal, people have made things that display git branch, etc. But for many we are power users and scripting bash is not fun when you're doing serious stuff, trust me I help maintain Dokku, Heroku on your own server written in Bash. It's a massive painpoint to do things. So we turn to more fully featured shells like ZSH. I used it for years and only recently turned to Fish... Because a lot of the stuff that ZSH had in userland that everyone used, was just apart of Fish.

Here's some comparisons:

My former .zshrc file:

Code:
# Where are my dotfiles?
export DOTFILES="${HOME}/.files"

# I like to use VSCode; for now.
export EDITOR=code

# Central timezone, what's up?
export TZ=America/Chicago

# Consistent default $PATH, nawm sayn.
export PATH=`cat /etc/paths | tr "\\n" ":" | sed 's/:$//'`
export PATH="/usr/local/sbin:${PATH}"

# Go-lang PATH.
export GOPATH="${HOME}/Public/golang-code"

# Yarn global bin prefix.
export PREFIX="/usr/local"

# Global Composer bin.
export GLOBAL_COMPOSER_BIN="${HOME}/.composer/vendor/bin"

# Global yarn bin.
YARN_GLOBAL_DIR=`yarn global dir`
export GLOBAL_YARN_BIN="${YARN_GLOBAL_DIR}/node_modules/.bin"

# Local Node Modules bin.
export LOCAL_NODE_MODULES_BIN="./node_modules/.bin"

# Local Composer bin.
export LOCAL_COMPOSER_BIN="./vendor/bin"

# Now lets add our own to $PATH.
export PATH="${PATH}:${GOPATH}/bin"
export PATH="${PATH}:${DOTFILES}/bin"
export PATH="${PATH}:${GLOBAL_COMPOSER_BIN}"
export PATH="${PATH}:${LOCAL_COMPOSER_BIN}"
export PATH="${PATH}:${GLOBAL_YARN_BIN}"
export PATH="${PATH}:${LOCAL_NODE_MODULES_BIN}"
export PATH="${PATH}:${ANDROID_HOME}/tools"
export PATH="${PATH}:${ANDROID_HOME}/platform-tools"

# Cask needs to keep all applications together.
export HOMEBREW_CASK_OPTS="--appdir=/Applications"

# Android Emulation.
export ANDROID_HOME="$HOME/Library/Android/sdk"

# For historical purposes.
export HISTSIZE=10000
export SAVEHIST=8500

# Is antigen installed?
if [ ! -d "${HOME}/.antigen" ]; then
  # Nope! Install it.
  git clone https://github.com/zsh-users/antigen.git ${HOME}/.antigen
fi

# Now source it.
source ${HOME}/.antigen/antigen.zsh

# Oh My ZSH!
COMPLETION_WAITING_DOTS="true"
antigen use oh-my-zsh

# Load themes.
antigen theme https://gist.github.com/joshmanders/3d6a1fae12cafb52b9346c4ace705db9 bos-style
# Lets load up some bundles.
antigen bundle git
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle rupa/z
antigen bundle zsh-users/zsh-syntax-highlighting

# bind UP and DOWN arrow keys.
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down

# Apply that shizzle!
antigen apply

# Not sure what this is, yet.
setopt nocorrectall

# Auto suggestions, woohoo!
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

# Load aliases.
source ${DOTFILES}/aliases

# Use direnv
eval "$(direnv hook zsh)"

As you can see, so much going on and in some parts I even tell myself I don't even know what is really happening.. But I left it there because someone "smarter than me" said to.

This is my Fish config, and I have never ran into anything I couldn't do in ZSH:

Code:
# Disable fish greeting on startup
function fish_greeting
end

# Don't display date on bobthefish theme 
set -g theme_display_date no

# Set bobthefish color
set -g theme_color_scheme dracula

# Where are my dotfiles?
set -Ux DOTFILES $HOME/.files

# I like to use VSCode; for now.
set -Ux EDITOR code

# Central timezone, what's up?
set -Ux TZ America/Chicago

# Add dotfiles bin to $PATH
set -U fish_user_paths $fish_user_paths $DOTFILES/bin

# Add Homebrew's sbin to $PATH
set -U fish_user_paths $fish_user_paths /usr/local/sbin

# Add local node modules to $PATH
set -U fish_user_paths $fish_user_paths ./node_modules/.bin

 

Gummibeer

Astroneer
Moderator
Local time
18:10
Joined
Oct 5, 2019
Messages
1,150
Pronouns
he/him

I'm sorry but have you heard about our lord ans savior Dracula?
Yes, and I've used it before Nord. I prefer Nord because it's calming but still with contrast. Most of the other dark themes are too aggressive for me because they use neon tones.

 

itshaydendev

New member
Local time
17:10
Joined
Jan 15, 2020
Messages
1
Pronouns
He/Him

On linux, I use kitty. On mac, I use iTerm2. On Windows, I use Windows Terminal (with WSL2 and PowerShell Core only)

 
Top