1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-16 19:00:07 +00:00
Commit graph

51 commits

Author SHA1 Message Date
Marc Cornellà
d47447a5e6
osx: refactor plugin and add a few features (#9026)
Co-authored-by: Capybara <git.capybara@gmail.com>
Co-authored-by: drootang <drootang@users.noreply.github.com>
Co-authored-by: Augusto Souza <augustorsouza@gmail.com>
Co-authored-by: PatrBal <44707588+PatrBal@users.noreply.github.com>
2020-06-17 11:26:39 +02:00
James Jensen
451fb25703 osx: modify itunes function to support Apple Music (#8372)
Change `itunes` to `music`, as iTunes was renamed to Music in _**macOS** Catalina 10.15_

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2019-11-15 22:59:20 +01:00
Pete Johns
7f66a070a4 osx: add more arguments to itunes vol command (#7845)
- Get the iTunes volume without an argument
- Shift up / down iTunes volume
2019-05-27 18:22:07 +02:00
Umberto Lentini
351fa06574 osx: added support for Hyper terminal (#7494) 2019-04-09 14:05:53 +02:00
Igor Kapkov
2614b7ecdf osx: fix rmdsstore function definition (#7443) 2018-11-27 22:58:36 +01:00
Matthieu PETIOT
d4cae83152 osx: add function to remove .DS_Store files (#7008)
rmdsstore removes .DS_Store files recursively in the current directory by default, or for the given directories.
2018-09-10 20:10:31 +02:00
Janosch Schwalm
19b925e741 use https everywhere (#6574)
* use https everywhere

* use https links on the files that are left

Also, removed some broken links and updated redirections.
2018-08-07 20:42:01 +02:00
Harish Narayanan
c3b072eace Replace spotify command in the osx plugin with a more recent copy of the upstream project (#6419)
* Remove older shpotify code from the macOS plugin

* Add Shpotify 2.0.1 from the upstream repository at https://github.com/hnarayanan/shpotify/releases/tag/2.0.1

* Wrap the Shpotify script in a function and import into the macOS plugin

* Fix import path of the shpotify script

* Add shpotify permission notice in the macos plugin rREADME

* Merge with the upstream shpotify project

- Fix playlist playback
- Add a 'stop' command
2017-12-14 08:01:32 -08:00
Avi Israeli
d874c73f19 itunes playlist first commit (#5860)
Added playlist feature for the itunes command: 
if a variable is passed and is valid - will play the playlist
if a variable is passed and is invalid(no such playlist) - will stop all playing
if no variable is passed will print all playlists available on the host
2017-02-22 23:53:27 -08:00
Ryan Brushett
ff5629e60b Improve UX for Spotify quit command in osx plugin (#5726)
* Improve UX for Spotify commands in osx plugin

Spotify command UX is a bit weak for people who live and work almost entirely in shells.
- `spotify quit` should not open Spotify if it is not already running. Should confirm that Spotify is indeed not running.
- `spotify quit` should not blow away the user's shell once Spotify is quit. This can be a disruption to work flow.

This PR looks to add a few little checks which will help improve this experience.
This PR also adds a space to line 477 between `break` and `;;` for consistency. Doesn't seem like a big enough change to put in its own PR.

* Rearranging output as per peer feedback

* osx plugin's spotify: change quitting w/ closing

Closing is more idiomatic English.
2016-12-30 18:59:17 +01:00
Manuel Hutter
3de0235ad2 Add missing newline to end of spotify status output (#5480) 2016-09-30 19:54:27 +02:00
mahi97
d6e032035c seach show Url of song 2016-09-01 01:52:43 +04:30
mahi97
d099022e44 complete help 2016-08-31 04:41:54 +04:30
mahi97
6cbba3353f fix showStatus output 2016-08-31 04:35:29 +04:30
mahi97
b808555678 add search option for playlist 2016-08-31 04:18:22 +04:30
mahi97
3b2f827d5b add Search Option for album,artist and tracks 2016-08-31 04:12:13 +04:30
mahi97
96d57dc33e change pause to play/pause 2016-08-31 03:58:15 +04:30
mahi97
2a5321f4e6 add color echo 2016-08-31 03:56:21 +04:30
mahi97
92586e38c7 add info, share and status option 2016-08-31 03:50:53 +04:30
mahi97
8f47c96453 volume up/down added 2016-08-31 03:37:53 +04:30
mahi97
9248052e91 initial spotify control 2016-08-31 03:31:49 +04:30
Multilul
6e33095a7d iTerm2 v3 tab commands fixes (#5336)
Fixes the "syntax error: expected line end ..." (-2741) when using the tab, split_tab and vsplit_tab commands in iTerm2 v3
2016-08-24 21:15:12 +02:00
Ahmad Awais
5d6c350166 Enhancement: Show/Hide OSX hidden files 💯 (#5275) 2016-08-14 17:55:02 -07:00
Marc Cornellà
9a61336d33 Fix man-preview completion definition
Related: #5179
2016-06-20 22:19:02 +02:00
Marc Cornellà
46c0d9590d Add README for OSX plugin and refactor plugin file 2016-06-16 00:23:09 +02:00
mssalvatore
137a554e48 Open finder to PWD - part 2 (#5165)
* Modifies ofd to use alias to open_command instead of shell function with AppleScript
2016-06-16 00:03:37 +02:00
mssalvatore
623ea23818 Add ofd() to OSX plugin to open finder on current directory (#5164)
* Add ofd() to OSX plugin to open finder on current directory

* Change `pwd` to $PWD in osx.plugin.zsh
  Suggested by mcornella
2016-06-15 23:17:03 +02:00
Johan K. Jensen
d189236f75 Add iTerm2 v3 support 2016-03-08 13:17:23 +01:00
Robby Russell
a51a9169a9 Merge pull request #4348 from andybateman/patch-1
Display song currently playing in iTunes
2015-09-27 12:40:31 -07:00
Andy Bateman
326c2b0859 Replaced the use of 'print' with 'echo' in order to sanitise track and artist names
Fixed indentation

Fixed indentation
2015-09-22 08:15:31 +12:00
Andy Bateman
993e09cc6b Added function for 'itunes playing' to display state when not playing 2015-09-22 08:15:31 +12:00
Andy Bateman
9f2acdc445 You can now use 'itunes status' as well as 'itunes playing' to show current track 2015-09-22 08:15:31 +12:00
Andy Bateman
29db0e0119 Fixed colourisation of Now Playing function 2015-09-22 08:15:31 +12:00
Andy Bateman
a746e6010a Update osx.plugin.zsh
Added function to display the song you're currently listening to in iTunes

Fixed indent

Indentation on line 169 was squiffy

Fixed spelling

Removed unnecessary wording to make function more succinct.

Highlighting of Artist and Track

Changed the highlighting of the Track and Artist in yellow to make use of Prompt Expansion Colors
2015-09-22 08:15:22 +12:00
MoonFruit
0a2c31fb60 Remove redundant semicolon
Remove redundant semicolon to make tab() works better in ITerm 2.
2015-08-28 10:46:45 +08:00
Andrew Janke
689b5ab3c8 osx: fix tab* functions so cd works in iTerm2, exit status is correct, and
error messages are not discarded.
2015-06-26 01:48:17 -04:00
Vadim
4b76b7429a remove trash command from osx plugin 2015-06-12 00:21:44 +02:00
Robby Russell
ce607d3fcb Adding keystrong return to oascrupt per suggestion by @enzzzy. Fixes #2913. 2015-02-22 09:51:22 -08:00
Ryan Robeson
43a2e24c25 Add itunes shuffle command to OSX plugin.
Added shuffle functionality to the itunes command in the OSX plugin.
iTunes 12 doesn't support setting the "shuffle" property on the playlist
from what I've read, so this simulates the user interacting with the
iTunes interface. The toggle option "clicks" the shuffle button in the
Now Playing area. This has the effect of toggling the shuffle setting on
whatever is currently playing. The on and off options use the Shuffle
menu bar items.

Usage: itunes shuffle [on|off|toggle]
2014-12-12 17:48:17 -05:00
Elliott Williams
73212ded4e Fix osx function: "not valid in this context"
I have been continually having problems with the "trash" function provided by the osx plugin, getting this error:

    trash:local:2: not valid in this context:

It seems like adding quotes around the assignment in [osx.plugin.zsh#L142](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/osx/osx.plugin.zsh#L142) fixed my problem.

Does this look good to you? Thanks!
2014-07-21 11:15:09 -04:00
Josh Datko
b7f51bbbdd Adds itunes vol command.
Adds itunes vol, which takes an argument from 0 to 100 to set the
volume from the shell.
2014-05-27 10:34:03 -06:00
Benjamin Wong
6f3cf195c6 Spelling correction in itunes control function.
Spelling correction in itunes control function.
2014-04-18 22:43:23 +10:00
oxnz
500e5a73b6 add itunes function to control itnues from the terminal 2013-10-16 16:43:03 +08:00
Christoph Jerolimov
b074886ae6 Do not clear tab when calling it with an argument. 2013-06-14 01:36:37 +03:00
ishtu
49860bd61f add function vncviwer 2013-03-10 19:18:33 +03:00
Ryan Schmukler
4a813cf1a2 Added vsplit_tab and split_tab for iTerm. Create new session within a vertical/horizontal split of the tab respectively. 2011-12-27 21:02:31 -06:00
Sorin Ionescu
f401d6ef78 Vastly improved osx plugin. 2011-06-01 20:24:15 -04:00
Andrew Hodges
18293cd724 OS X Helpers
Add helper aliases for show/hide files. Add helper alias to recursively delete
.DS_Store files.
2011-05-28 11:27:50 -04:00
Ben Langfeld
6467e90efb Add iTerm version of tab function (itab) 2011-02-18 13:11:24 +00:00
Ben Langfeld
c52fea8082 Make a cleaner version of the OS X tab function 2011-02-18 13:11:24 +00:00