Commit Graph

35 Commits (de84c9d4fbac7933f4c923e3a5b277f8a1638595)

Author SHA1 Message Date
Derek Stavis 3fb8b3484b cli: fix #161 by inverting test argument order
Since `test` interprets arguments starting with a single dash as
options when comparing `test -h = --help` just swap parameter
orders as in `test --help = -h`. Also related to issue #161 is the
issue from fish repository at fish-shell/fish-shell#2332
9 years ago
Derek Stavis c4bd4ade55 omf: Refresh after bundle install 9 years ago
Derek Stavis 7ccdada8c6 omf install: Don't refresh when nothing installed 9 years ago
Bruno Pinto cc7b321268 Create `omf.update` function
Update and install were one thing before.
9 years ago
Bruno Pinto c346731743 Simplify install command
- Install does not do update.
- Share code when installing from URL or name.
9 years ago
Bruno Pinto 870efd0dda Merge all omf list functions 9 years ago
Bruno Pinto 7025525ef1 Simplify `omf cd` code
This also namespace the function to `omf.packages`.
9 years ago
Derek Stavis ea0b464f1d omf.theme: Rework theme activation code
- Move theme installation to cli entry point (omf.fish)
- Generalize XDG_CONFIG_HOME code in `omf.xdg.config_home`
- Generalize prompt conflicts check in `omf.checks.fish_prompt`
  * Migrate `omf.doctor` to use it

+ Change theme activation steps
  - Create user function path if not existent
  - Check for conflicts in fish_prompt, aborts if found
  - Remove current theme from autoloading paths
  - Add target theme to autoloading paths
  - Link target theme's fish_prompt to user's
  - Persist selected theme to $OMF_CONFIG/theme

This approach brings two major advantages:

- Theme prompt now shows accordingly in fish_config web interface
- Faster theme changes, reducing it from seconds to some milis
- Avoids calling refresh, which makes users much more happy
9 years ago
Bruno Pinto bc0d4847e8 Resolve #30: omf doctor command
In order to pro-actively diagnose an issue on someone's computer, a
`omf doctor' command is being added. This command will initially check
errors that could cause a theme to not be loaded, but in the future more
checks are going to be added to prevent issues from being created for
problems that are fixable by the Oh My Fish user alone.
9 years ago
Bruno Pinto 46e4d036ba Organize commands and remove undocumented aliases 9 years ago
Bruno Pinto e2a7f7d229 Split into init.fish and omf.fish files 9 years ago
jeremiejig 5cdde2639a bin/install & omf.repo.pull adding -C $git_dir removing pushd and popd 9 years ago
jeremiejig b9c1bd9576 Fixing how omf remove work, and omf.remove_package
destroy was broken because of a premature refresh. (giving false hang
behaviour)
9 years ago
Derek Stavis c929fa41ab bundle: move related functions to omf.bundle namespace 9 years ago
Bruno Pinto 61f71f3ce8 Replace `omf.update` with `omf.repo.pull`
- Pull repository from origin unless upstream exist.
9 years ago
Bruno Pinto b36bc03eb0 Remove global OSTYPE variable. 9 years ago
Bruno Pinto ae0e4388b6 Back to oh-my-fish organization 9 years ago
Derek Stavis 0a195572a1 omf: install without arguments installs bundle 9 years ago
Sheldon Els 633e52101b describe works on installed packages
also modified list_db_packages to return all packages by default, but with a
skip_installed to skip listing installed packages
9 years ago
Gabriel Marquez 3acfae98b1 implements help for commands 9 years ago
Sheldon Els 00701642e8 info command
to easily see from commandline what each package does via their descriptions
on github
9 years ago
Bruno Pinto 7706d848cc Fix dim color that was the same as em 9 years ago
Bruno Pinto ecb9dfa0a9 `omf cd` command for changing directories.
Jump around Oh My Fish packages and themes using `omf cd <name>`. If no
<name> is specified, jump to oh my fish root folder.
9 years ago
Bruno Pinto 62a45e9ec2 Convert version and help into options
Instead of clobbering the actions with both version and help, use
options instead. They are also going to be used for subcommands (e.g.
omf list --help) once they support options.
9 years ago
Jorge Bucaran d107b2ec1e simplify color setters 9 years ago
Bruno Pinto 0767b2a72f Fish < 2.2 does not support argument for set_color
The second argument (background) was added on fish 2.2
9 years ago
Bruno Pinto bfe77b6273 Handle scenarios where colors are not defined.
Fish should set default colors:
b32f770a69/share/functions/__fish_config_interactive.fish

But in case some users don't have these color variables set, use their
defaults values.
9 years ago
Bruno Pinto 20ed43983b Naming functions with `omf.` namespace.
Having a clear namespace `omf.` improves the readability of the code as
we clarify what is the function name and what is the namespace.
9 years ago
Bruno Pinto 2ecc1fc100 Use fish's colors
Instead of using custom colors, reuse fish's colors.
Original fish colors here:
4d628d5f43/functions/restore_original_fish_colors.fish
9 years ago
Wes Morgan 2564e7446c refresh after installing package or theme
The functions themselves no longer do that.
9 years ago
Jorge Bucaran fa46c0118e Merge pull request #519 from fish-shell/get-renamed-to-install
Rename 'get' to 'install'
9 years ago
Jorge Bucaran c855e0024c fix omf new theme and remove default theme 9 years ago
Bruno Pinto 24ab9a991b Rename 'get' to 'install'
We already use 'install' on the command description: 'Install one or
more packages.'

Also call update using 'u' instead of 'p'.
9 years ago
Bruno Pinto a9df3e1e98 Rename `omf use` to `omf theme`.
The first time I saw `use`, I thought I could use the command for
everything, including packages, but it's only used for themes. So, it's
better to have a clearer name.
9 years ago
Jorge Bucaran 2693a2fd18 %%% United States of the Fish → Wahoo + OMF %%% 9 years ago