-p
: preserves permissions.-o
: preserves owner.-g
: preserves group.-b
: make a backup of the original file instead of overwriting it, if it exists.-r
: recurse directories.-hhh
: outputs numbers in human-readable format, in units of 1024 (K, M, G, T).--backup-dir=/tmp/rsync
: move backup copies to "/tmp/rsync".-e /dev/null
: only work on local files (disable remote shells).--progress
: display progress.Edit: Copied from the repo where I took the command from in the first place some months ago.
Pretty hard to get someone to click this if they install everything through the distribution. OpenSource users would have to get infected via the repository or rather upstream. There are enough stories about malware on npm and pypi out there but those are much more open than the typical linux distribution.
Of course there are always people piping shellcode from Microsoft Github. Cant save everyone I guess?
Here’s the list: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
You can also install the oh-my-zsh plugin called “you-should-use” which will remind you of a shortcut every time you type a command which already has an alias
Kali uses ZSH as shell and i think Ubuntu uses bash. So if you want the same functionality you have to switch to ZSH and install a theme like ohmyzsh, powerlevel10k or copy over the theme from kali linux.
I'm using the emacsclient wrapper from oh-my-zsh: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/emacs/emacsclient.sh
But I made a copy and put it in ~/bin/edit, so what ever I do, I can always "edit" a file or start "edit" from rofi to get an emacs window when I need it.
As far as I know, the --alternative-editor
option to emacsclient will make it start up a server if needed or reuse one if possible, so I don't need to start emacs as a system service.
First call of the editor will take a couple of seconds, after that, it's just emacsclient.
Apart from not having to add too many options to the command(well, I use -n quite often), the wrapper also reuses any open GUI or TTY frames.. I try to not use too many frames, I'm more of a buffer switcher.
Try switching to zsh shell, preferably with Oh My Zsh. You will be able to use TAB autocompletion and use arrows to choose. There's also a ton of other features that will improve your terminal experience. https://github.com/ohmyzsh/ohmyzsh
Looks like that's an oh-my-zsh thing (see also line 16).
(I really ought to play around with oh-my-zsh, but I've been using zsh I think longer than oh-my-zsh has been around, so I've got my own things that I like.)
From the post:
> Antigen cites that it is directly inspired by Vundle, which is a great plugin manager for Vim. Vundle was inspired by Pathogen which was the first plugin manager for Vim. Thus this is the reason Antigen is named after an Immunology term.
Your previous comment was spot on -- Antigen's name is a tribute to Pathogen.
It's interesting to see that people were looking for a "vaccine" against the "disease" of oh-my-zsh since at least 2014 (that's 7 years ago!). The specific criticism doesn't seem to apply nowadays though. Good job on the part of oh-my-zsh I guess. Perhaps Marc Cornellà becoming the main maintainer was a turning point?
Another historical artifact from even older times is this PR that resulted in prezto forking off oh-my-zsh. Fascinating read. 10 years later oh-my-zsh is enjoying unprecedented popularity while prezto seems like one of many despite much higher technical skill of its author. Reading the PR today this seems inevitable but I doubt I could have made this prediction back then.
Shell Prompt.
There are various projects that add all sorts of fancy garbage, one notorious and big garbage project for garbage shell ZSH is oh-my-zsh - github. If you are into fancy shell experience, I would switch to ZSH and install oh-my-zsh.
A note on powerlevel10k:
You need to use a terminal font that supports all those funky characters. The powerlevel10k GitHub includes a download link for one that’s a pretty nice font, and there’s also this GitHub with a lot more of these fonts. I really like the mononoki font myself, but there’s a lot of nice fonts in there.
And here is the link to the oh-my-zsh GitHub page, though you don’t necessarily need that to install powerlevel10k or any other zsh plugins, but it does make it easy.
I don’t generally mess around with prompts. I’ve done it before, but it’s annoying.
Easy way:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Then go here and find what you like.
Edit the .zshrc file, scroll down to the line that says theme or something, and change the value.
Or you can fuck around endlessly with the prompt itself.
Hm, if you mean just changing your iTerm color scheme, go to preferences > profiles > colors and you can change the colors there :)
To do the extra fancy format stuff, install zsh and check out these themes. Hope that helps?
I just checked again and no, there doesn’t seem to be any good way to disable OMZ’s completion module. On the other hand, OMZ‘s completion module doesn’t actually seem to do all that much. So, don’t worry about it. I should probably remove OMZ from that sentence. :)
> Would it be enough to source this plugin before OMZ runs compinit?
It doesn’t really matter. Whichever way you source zsh-autocomplete
, it will care by itself that it gets initialized correctly. :) But in case you want to minimize your shell’s startup time: It’s generally fastest to source zsh-autocomplete
as early as possible.
Exactly what do you like about it? The transparency, the non-default shell or the shell theme?
Transparency and color changes can be achieved in almost any terminal emulator, including the default GNOME Terminal. Just look in the program's preferences.
To change your default terminal to something other than GNOME, you would benefit from doing a little research about your options. Some popular ones are Alacritty and Tilix for example. You would have to install it and make them default.
The theme is Agnoster, or one of the variants, which can be seen on Oh-My-Zsh's Github repos. To achieve a look like the picture you posted, you would need to understand more about all of the above mentioned components.
To help you along, the things you can look into include;
Terminal emulators for Linux.
Shells and plug-in frameworks. For example, I use the Alacritty terminal emulator with Z-shell, or Zsh, and use either Zprezto or Oh-My-Zsh as a plug-in framework. I have a modified "Pure Theme" for Zsh.
The usual way to get that look is to install the theme you want in your chosen framework and enable it in your ~/.zshrc
, or the equivalent of whatever shell you're using.
I don't use oh-my-zsh
, but here is the link to their implementation: https://github.com/ohmyzsh/ohmyzsh/pull/7578/files. Generally you need to add the directory where the completion file exists to fpath
before the completion is initialized with compinit
. You shouldn't source the file anyway. In their case you need to find out where $ZSH_CUSTOM
is in your system
Sincere question, but why does your name not come up on the official website as a maintainer? And how come you don't show up on the list of GitHub contributors?
I see you're a member of the org, but can't find any evidence beyond that. Legitimately not trying to harass you, just curious.
Nice to see you like it 😄
A ZSH theme is just a pre-configured $PS1
and based on the name “robbyrussell“ I guess you're using oh-my-zsh.
The screenshots of the Nord port projects have been taken on my personal system(s) and you can find my configured $PS1 in my .dotfile repository. The colors itself are provided by the terminal theme, in your case Nord iTerm2. If you also like to style the output of *nix commands like ls
you can install Nord dircolors.
Okay, I looked: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/pj/pj.plugin.zsh
It calls compadd and compdef once, but that’s not much to go on to really understand completions, sorry. Thanks anyway.
Terminal: Kitty
Compositor: picom
Shell: zsh (with ohmyzsh)
Screenfetch: Neofetch
Text editor: vim
WM: awesome
Template used as a starting point for this theme: awesome-copycats
Terminal: Kitty
Compositor: picom
Shell: zsh (with ohmyzsh)
Screenfetch: Neofetch
WM: awesome
Template used as a starting point for this theme: awesome-copycats
There should be a .zshrc.pre-oh-my-zsh or something similar in your home directory. Just make that the .zshrc file again. They also have documentation on their GitHub Repository that includes uninstalling and where your original files went.
It's knownas Oh My ZSH!. You can use these instructions: https://medium.com/@shivam1/make-your-terminal-beautiful-and-fast-with-zsh-shell-and-powerlevel10k-6484461c6efb
Note: You don't have to use powerlevel10k theme. You can take a look Oh My ZDH! themes and pick whatever you want: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
Otherwise, the installations is the same. just make sure you use the plugins in the instructions (autocorrection and syntax highlighting).
I think I have a solution. I added the tmux
plugin to .zshrc
, and removed the line I added to open in a new session.
The tmux
plugin has some useful defaults, including Automatically connect to a previous session if it exits (default: true)
.
I then added this to my .zshrc
file: ZSH_TMUX_AUTOSTART=true
So, now, when I run my test workflow, the new file opens in the same session without the duplicate session tabs.
Here are some helpful resources:
If you mean having a prompt like mine without having to install Zsh I dont really know, I think so but I dont know how to.
If you feel like trying Zsh, follow this guide first. Besides having a cool prompt Zsh is veeery useful.
Add the command-not-found plugin for oh-my-zsh.
> This plugin uses the command-not-found package for zsh to provide suggested packages to be installed if a command cannot be found.
To use it, add command-not-found to the plugins array of your zshrc file:
plugins=(... command-not-found)
If you are not bash dependant I highly recommend the oh my zsh's plugin for dnf. Dnf is totally a beast of its own, 100% recommend at least taking a peek at the man page.
Having a separate partition for /home and Ventoy have been a godsent in the last couple of years of my distro hopping of sorts.
Agree on the DE, I've been considering elementary's DE but their lastest update kinda took a lil bit or their fresh take on the DE scene, still a pretty good contender, will def install it on a VM these holidays.
My current GNOME 41 has at least 10 extensions but it still feels clean compared to my cleanest KDE Plasma 5 layout.
I have the same issue, but it has not started with Montery but with a very recent omz update
.
I could track down the change to the following commit in omz:
7f49494 - fix(dirhistory): fix ALT+Up/Down key bindings for Terminal.app
After reverting that commit, up/down work as before. I do not understand what that commit meant to "fix" in the first place.
Someone already answered you so I will just say I know the frustration of trying to figure out something that's sooo basic the information is nowhere to be found. :S And if you are interested in fun terminal prompts, check out the zsh
shell which has easily installable themes that do all kinds of neato things. (And many other advantages which may or may not be or interest to you.) It is probably already installed, just type exec zsh
. to get back to bash
, type exit
or close the window.
Or if you want to stay on bash
(which yes, you are using bash
inside the terminal; it will be the same if you use gnome or kde or whatever) I have heard https://starship.rs/ is good.
I love aliases, but I'm too lazy to configure agnostics ones like that, I use the ones provided by the ohmyzsh plugin: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/archlinux/archlinux.plugin.zsh
u mean the prompt? u have a few options to get that look, the easiest is probably oh-my-zsh, once that is installed, switch to the agnoster theme. or u can lookup powerlevel10k which is pretty cool and last but the hardest is just to make the prompt yourself. u can take a look at my github and i think it is called .prompt10.zsh or .prompt11.zsh
ZSH doesn't block you from using Alacritty. Terminal emulator is a program which runs something called 'shell' inside and ZSH is one of the popular shells you could run. Oh-My-ZSH is a set of tools, extensions, tweaks and configs for it so you don't have to configure everything from scratch and it comes with many themes you can choose from.
You probably removed your default shell without a replacement, didn't you?
https://askubuntu.com/a/792522
(This answer is a little bit old, Ubuntu now uses gdm
for login purposes instead of lightdm
)
And while you could chroot and repair your system this way, if you don't remember what commands you ran you might not be able to fix it on your own. Better to rescue your personal data and reinstall, next time be more cautious and read how you can safely remove oh-my-zsh and change your default shell from zsh back to bash
https://github.com/ohmyzsh/ohmyzsh/issues/4748
Seems like GitHub thinks you committed a key of some sort that it recognized and is trying to help you not leak it into other peoples code bases. I could be wrong, but I sort of doubt it here.
Generate a new token and revoke the old one.
I don't know what you are trying to do there but the instructions to change shell can be found here.
The other steps are for OhmyZsh but if you only want the shell, just follow the instructions.
I would look into Ubuntu. I like my rolling releases too (I have Manjaro on my laptop atm), so to remedy the stability of Ubuntu, I compile my own kernel. Low-latency, slim, no Intel support I don't need, etc.
I am currently on the 5.11 kernel, but am struggling to find the reason why 5.12 is creating a 10GB footprint at make
time...
If you want customizability, use KDE if you want to go the qt route, GNOME if you want GTK then head over to Open Desktop's Pling to get a nice GTK shell theme, and regardless of the DE, get a Plymouth boot theme, GRUB theme, terminal theme... You get my point. GNOME Tweaks is a must for GNOME (primarily to turn off animations if you don't want to use dconf-editor).
Customize your prompt. I use ZSH with [OhMyZSH](https://github.com/ohmyzsh/ohmyzsh], as well as the Powerlevel10k theme.
~/.oh-my-zsh/custom/plugins
looks like the better place for plugins downloaded manually and not included with oh-my-zsh release. They will be loaded too.
Do zsh-syntax-highlighting
work ? Doesn't appear to be present in the oh-my-zsh/plugins
directory. If no, you may need to put them in the relevent oh-my-zsh/custom
directory :
# Custom Plugins and Themes
If you want to override any of the default behaviors, just add a new file (ending in .zsh) in the custom/ directory.
If you have many functions that go well together, you can put them as a XYZ.plugin.zsh file in the custom/plugins/ directory and then enable this plugin.
If you would like to override the functionality of a plugin distributed with Oh My Zsh, create a plugin of the same name in the custom/plugins/ directory and it will be loaded instead of the one in plugins/.
yes, that's what I get. But looking at https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git-prompt it should be:
(<branch><branch tracking>|<local status>)
eg:
(master↑3|✚1): on branch master, ahead of remote by 3 commits, 1 file changed but not staged
When you say "update prompt" do you mean the prompt from Oh-My-Zsh to update itself? If so, you can manually update it. See the FAQ.
I’d suggest taking a look at this command line tutorial from Mozilla.
I also suggest not trying to memorize all of the commands. Use a cheat sheet. Eventually the commands you use often will stick. Oh My Zsh has a zsh cheatsheet on their GitHub.
it's zsh (if using the latest release of Kali): https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
running under the xfce terminal emulator: https://www.iceflatline.com/2009/08/installing-xfce-terminal-on-ubuntu-and-fedora/
Fair enough. You've contributed an open source implementation of genpass
and I appreciate it. You don't have an obligation to improve or support it.
I've sent a PR to ohmyzsh: https://github.com/ohmyzsh/ohmyzsh/pull/9520.
zsh is a command-line shell. A shell is the program that is started inside your terminal window to interpret your commands. For example, if you open a terminal and type ls
, it's the shell that's supposed to figure out that ls
is an executable and run it for you. As you might have figured out from this post, shells can do other neat stuff, like help you complete the commands you type.
If you haven't configured anything on your system, the shell you are using is probably bash. You can verify that by running echo $SHELL
. To use zsh
instead you would have to (after SSH-in into the target system in your case):
apt install zsh
on the raspberry piwhich zsh
. Then run chsh
and give it the path to zsh
, which I imagine would be /usr/bin/zsh
. Don't enter the wrong path here and don't forget to change it back if you're going to uninstall zsh because you might get locked out of your system!Alternatively, if you don't want to mess with your default shell, you can run start one-time sessions by simply running it within bash. Just run zsh
. This is completely non-intrusive to your current setup.
Keep in mind that zsh is meant to be configured and does not enable stuff out-of-the-box, unless Raspbian has added a default profile to help newbies. You might find it convenient to install a framework like Oh My Zsh with prompt themes and plugins to get you started instead of trying to set everything up yourself. Or you might want to check out the fish shell instead which aims to work out-of-the-box at the cost of being more divergent from bash, which you might not care about.
so far, this is what my ~/.zshrc looks like:
GNU nano 4.8 /home/retra/.zshrc # Enable
Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
​
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
​
# Path to your oh-my-zsh installation.
export ZSH="/home/retra/.oh-my-zsh"
​
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
​
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
The most used zsh config is by far oh-my-zsh to the point where a lot of people use zsh/oh-my-zsh as synonyms
that being said it is my opinion way to many different configs/themes/plugin in one single place and easily slows down your shell but good to look at and find inspirations at their wiki page
It’s this line in Oh My Zsh that’s doing this. It’s a common complaint among users. It only slows things down if bracketed paste is supported by the terminal.
Here's a zsh plugin that protects you from some exploits of this type: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/safe-paste
It's not bullet-proof, but it helps.
See also https://cirw.in/blog/bracketed-paste
This one is for zsh, but you should be able to get the idea:
https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/tmux/tmux.plugin.zsh
Hope this helps
Not shililng, but there's lots of solutions to most of these:
> No maximize (just full screen)
The "zoom" button (option-clicking the green fullscreen button) stretches to fit content, but no more. E.g. a 1000px wide column-stype webpage won't stretch to 5120px on my 49" ultrawide monitor.
That's a bug not a feature as far as I'm concerned, because it would waste 80% of my monitor. Although it's not what you might be used to from Windows/Linux
If you want to "force" 100% width, you can option (mirror resize) + double-click any corner of a window to make it stretch in all directions to the full extent possible.
> app might not close when I press x
Bug not a feature. E.g. I never want my browser, mail, file manager, code editor, chat programs to ever be shut down. I always want them to be in memory, receiving push notifications, and instant to reopen.
If you really need to quit an app (e.g. you won't use it for the foreseeable future), that's what command+Q is for
> no window snapping
I really wish this came in the box, but at least there's 10s of third party apps that do this, with all kinds of customization options
> bad terminal experience (little color in the terminal) not as powerful as Linux terminal
The built-in shell configuration is really vanilla/standard. Check out the Fish shell and Oh My Zsh. It's really no different than on Linux
iTerm is a free third-party alternative to the built in Terminal app, and it's awesome.
> small buttons (windows has in my opinion the best button sizes)
Have you tried playing around with the display scaling? Although that's not a particularly flexible solution, perhaps your screen density is just too high
The variable you want is LS_COLORS. Oh-my-zsh has tons of good examples in its themes. Here’s the OMZ default color setting: https://github.com/ohmyzsh/ohmyzsh/blob/d0d01c0bbf32ffe1dc22a66620ca85669c77e6b8/lib/theme-and-appearance.zsh#L5
So, I tried to install the zsh-athame-git from AUR but package is out of date. Anyway, I've stolen the vi-mode from Oh-My-Zsh, where if you press v
in normal mode it makes you edit the command directly in vim/nvim (depending on your $EDITOR
). That's more than enough for me :)
Themes are the worst part of OMZ in my opinion. ZSH has a much better built in prompt system and tons of good prompts that use it (pure, lean, spaceship, powerline). That said, there's a ton of other useful stuff in OMZ. I use antibody to drive my config, but I still import parts of OMZ using antibody. For some reason a lot of the stuff in lib (https://github.com/ohmyzsh/ohmyzsh/tree/master/lib) is really good, and similar functionality is not readily available as standalone plugins from what I have found. Term support (title bar, etc.), keybindings, and directories are three I definitely use from lib. Many of the plugins are good too - extract, colored man pages, shrinkpath, ssh-agent, git, and the python plugin are also some of my favs. Pulling only the OMZ stuff I need with antibody keeps my config super fast, unlike using OMZ directly. I highly recommend it.
Thanks for the tips. I'm also new to Mac after switching from Windows and even though there are things missing I'm liking the Mac so far. I actually didn't even know about Automater, I'm not sure how useful this would be for me as a developer, what do you use it for? iTerm2 is great, [oh-my-zse](https://github.com/ohmyzsh/ohmyzsh) makes it even better!
UPDATE:
This has been around for awhile apparently, and there's a fix. It's a tab completion issue specifically around underscores, and the fix is simply to add the following to .zshrc:
zstyle ':completion:*' matcher-list 'r:[[:ascii:]]||[[:ascii:]]=** r:|=* m:{a-z\-}={A-Z\_}'
I use zsh terminal and it has Ohmyzsh/git plugins on it. Check this out bro, i've been using this 6 months or far. it has nice shortcut features on it.... https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
That error comes from https://github.com/ohmyzsh/ohmyzsh/blob/5c1a5c6ce924755095020fd829b08f0ee205a723/tools/check_for_upgrade.sh#L23, which references ${ZSH_CACHE_DIR}
, which should be ${ZSH}/cache
, unless you have it set otherwise?
For anyone who is `zsh`-curious, but doesn't want to invest too much time in configuring things upfront, a wonderful, batteries-included start is ohmyzsh.
If you like it after this trial, then I'd recommend ditching the dependency and learning the real-thing.
When I'm using zsh, this is implemented by oh-my-zsh's virtualenvwrapper plugin. Whenever I cd into a directory, it searches for either a virtualenv with a name matching the git root directory, or a .venv file to override that.
Oh My Zsh git plugin might be useful. You can not only use them as aliases, but also learn git commands from it as treat it as a collection of best practices.
I don't know which CLI is used on Ubuntu Server 20.04, but if you want a wonderful CLI I suggest you Oh My Zsh with Powerlevel10k theme. My setting is Rainbow concise without time. Awesome with Git!
zsh has always been my go to! It has a wicked autocomplete function.
Best paired with ohmyzsh as well for plugins and themes
I followed the first link in this README and just kind of assumed you were using this plugin for SSH things. I guess I should've started by asking your use case.
Thanks! Unfortunately though, doesn't seem to be the case.
I have the plugin installed (it comes by default with Oh-My-ZSH) and activated correctly in my ZSH profile.
When I mentioned it was "Debian based" I was referencing the plugin's GitHub page.
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages
It seems it relies on dman, or debman to work. Two Debian based utilities.
Looking for a workaround for Solus.
I didn't watch the whole thing but I just wanted to mention that zsh has a 'wd' plugin which kind of acts like aliases for dirs.
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/wd
Apologies if you presented this later in your video.
>Zsh can have Vim bindings integrated into it (not just its mediocre vi mode)
Not sure what you mean. I'm using the vi-mode plugin from the oh-my-zsh.
It's not too bad. Only thing I'm missing is native surround support.
(I know I can use v
to enter vim and edit the command line there but this is bulky when your vim takes a few seconds to start + you have to exit it again. all that for two "
.)
Is there more?
If you are using ohmyzsh, the whole list of plugins is under the plugins folder in the repository, and I believe this specific one is fancy-ctrl-z
The time is time since last commit (which I don't understand why that's useful, but okay).
Not sure about the red ø-like symbol.
That looks like it was generated by oh-my-zsh. Assuming that the plugin used is git-prompt then you have 5 staged files. What happens when you do git pull
or git push
?
You can find oh-my-zsh here: https://github.com/ohmyzsh/ohmyzsh
Also the dogenpunk theme itself can be found: https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/dogenpunk.zsh-theme
Please credit these people for the theme. They are the ones who work the magic.
I'd suggest to install zsh for terminal, instead of bash which is the default option. Zsh is highly customizable, there are some versions out there, the one I suggest (because is the one I use) is oh-my-zsh, here's the github page, with info and some howtos.
I cloned the oh-my-zsh Github repository and executed grep
in there. Are there any other repositories than the one I mentioned that are cloned when executing the command that installs oh-my-zsh
?
UPDATE: Ok did a search on github and turns out this is an old issue (2014):
https://github.com/ohmyzsh/ohmyzsh/pull/3359
Apparently it was corrected (as I suggested above), but then that broke things, since zsh actually has a default value for HISTSIZE of 30, so this change makes everyone have a HISTSIZE of 30.
So the advice now is if you want to override any oh-my-zsh default values such as these, to do so at the end of your .zshrc file.
Thank you! I'm using oh-my-zsh with powerlevel10k theme! When you start uo powerlevel10k, it'll go through a wizard to setup the theme. I just followed that! My vim uses something called airline for a similar effect! Pywal should set the colors for both of these themes! (except with vim, you have to use the pywal plugin). Here's some github pages to get you started: https://github.com/ohmyzsh/ohmyzsh https://github.com/romkatv/powerlevel10k https://github.com/vim-airline/vim-airline
don't think terminal - think which shell.
Just install something like zsh and you're good to go. oh-my-zsh have a lot of nice plugins and themes and is a good place to start if you're new to this.
I'm sure there's a way to get it working in bash, but you may want to consider checking out zsh and on top of that add ohmyzsh. (I think tab completion is part of ohmyzsh, but I've never really used raw zsh enough to remember.)
With that setup, tabbing when there are multiple matches will allow you to tab scroll through each selection and hit enter to select it.
There's a great oh-my-zsh plugin for this: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract
​
Although, you could totally use it without oh-my-zsh, not sure how it would fair on bash/fish, though.
I just used this link; I used the curl-based command under 'getting started'. It asks if I want to replace my shell, and after agreeing and restarting, I've got a new shell.
There's a couple floating around in this git repo for ohmyzsh so they def exist
https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
I've never specifically themed by configuring zsh itself. I usually mess with the colors in the terminal preferences/settings and then zsh uses those colors. I know I have light themes available in my terminal (I use terminal.app on macOS so I'm not sure what the theme options look like in whatever you use).
If that's not possible Im sure you can make a light theme, they just aren't popular. You can probably find a guide to zsh customization on Google.
tmux showenv -g
shows the same env I have outside tmux after .zshrc
has loaded.
To be more specific: I have asdf
installed and oh-my-zsh
's asdf plugin. That plugin adds ASDF_DIR
env variable:
https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/asdf/asdf.plugin.zsh
Then, the asdf
script exports it:
https://github.com/asdf-vm/asdf/blob/master/asdf.sh#L16
Then tmux loads, it'll have the ASDF_DIR
env variable already exported, and then, it'll load interpret the whole .zshrc
. Then, the asdf plugin will not correctly set the ASDF_COMPLETIONS
variable.
There's two options here:
.zshrc
load.Thanks, that's some old, old code that I copied from Oh-My-Zsh when I transitioned away from it.
Excellent advise.
On top of that I would like to add from the perspective of a Linux user, get zsh instead of the default bash and install oh-my-zsh. Oh-my-zsh has a bunch plugins that streamline all development. By editing the .zshrc file you can add aliases and functions that'll make you never go back to a GUI.
Also getting comfortable with a terminal text-editor can be a steep learning curve with all the configuration needed. Vim-Bootstrap creates a .vimrc file according to your needs and automatically installs needed plugins.
Other great applications include zathura for PDFs, feh for images, mpv for videos and vifm for file management.