zshify 3.0.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,51 +12,47 @@ Installation is done using the [`npx`](https://docs.npmjs.com/getting-started/in
12
12
  npx zshify
13
13
  ```
14
14
 
15
- Alternatively, you can install using `bunx`.
15
+ Alternatively, you can install using `bunx zshify` (recommended).
16
16
 
17
- Yeah that's it, no downloads, no hassle. A minimalistic installation for the minimalistic package.
17
+ Yeah that's it, no downloads, no hassle. A minimalistic installation for a minimalistic package.
18
18
 
19
- > See advanced section to to enrich your terminal experience with autosuggestions, history search and syntax highlighting .
19
+ > See advanced section to to enrich your terminal experience with autosuggestions, history search and syntax highlighting.
20
20
 
21
21
  ## Why Zshify?
22
22
 
23
- Aren't you tired of your default Zsh prompt looking like this? Cluttered, ugly and slow?
23
+ - Aren't you tired of your default Zsh prompt looking like this? Cluttered, ugly and slow?
24
+ - Don't you need some additional features / useful aliases and functions are added as default.
24
25
 
25
26
  > dogefather@Dogeminers-Mac-mini ~ %
26
27
 
27
28
  Appearing over and over again with the usual boring info? Like you really want to know your username over and over again.
28
29
 
29
- Why not change it to it's minimal version? And that too with colors!
30
+ Why not change it to it's minimal yet advanced version? And that too with colors!
30
31
 
31
- ## Some addition feature / useful aliases and functions are added as default
32
-
33
- ### Adanced
32
+ ### For Advanced Experience
34
33
 
35
34
  ```sh
36
35
  # to enrich your terminal experience run this command after installing brew
37
- brew install zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting
36
+ brew install zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting fzf zoxide
38
37
  ```
39
38
 
40
39
  ### Alias
41
40
 
42
41
  ```sh
43
42
  # open files and folders in vscode
43
+ alias mkcd="cdx"
44
44
  alias c="code ."
45
45
  alias cr="code -r ."
46
-
47
- # open files and folders in finder
48
- alias o="open ."
49
-
50
- # hide or show files and folders in desktop
51
- alias hide="defaults write com.apple.finder CreateDesktop false && killall Finder"
52
- alias show="defaults write com.apple.finder CreateDesktop true && killall Finder"
53
46
  ```
54
47
 
55
48
  ### Functions
56
49
 
57
50
  ```sh
58
- # close any application running on a port
59
- close 3000
51
+ # creates a directory recursively if it doesn't exists and switch to it
52
+ mkcd "newProject" || mkcd "newProject/subProject"
53
+
54
+ # clone any github repo
55
+ clone nrjdalal/zshify
60
56
 
61
57
  # git add, commit and push (with message)
62
58
  g "commit message"
@@ -64,12 +60,21 @@ g "commit message"
64
60
  # just enhanced version of ls with colors and sorting
65
61
  ls
66
62
 
67
- # creates a directory recursively if it doesn't exists and switch to it
68
- mkcd "newProject" || mkcd "newProject/subProject"
69
-
70
63
  # create a github repo from command line (pass --public for private repo)
71
64
  mkrepo || mkrepo --public
72
65
 
66
+ # close any application running on a given port
67
+ close 3000
68
+
73
69
  # rename current directory to new name
74
70
  rename "newName"
71
+
72
+ # trash all files and folders including hidden files
73
+ trash
74
+ ```
75
+
76
+ ### Postgres Launcher
77
+
78
+ ```sh
79
+ pglaunch
75
80
  ```
package/bin/script.zsh CHANGED
@@ -13,9 +13,14 @@ grep "source ~/.zshify/fx.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/fx
13
13
  curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/user.zsh | cat >~/.zshify/user.zsh
14
14
  grep "source ~/.zshify/user.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/user.zsh" >>~/.zshrc
15
15
 
16
- curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/postgres.zsh | cat >~/.zshify/postgres.zsh
16
+ curl -s https://raw.githubusercontent.com/nrjdalal/pglaunch/main/bin/fx.sh | cat >~/.zshify/postgres.zsh
17
17
  grep "source ~/.zshify/postgres.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/postgres.zsh" >>~/.zshrc
18
18
 
19
19
  which brew &>/dev/null || echo "\n$(tput setaf 1)brew not installed! install via -$(tput sgr0)\n/bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\"
20
20
 
21
21
  echo "\n$(tput setaf 2)zshify enabled! to reload, run -$(tput sgr0) exec zsh"
22
+
23
+ # cleanup
24
+
25
+ grep -vxFf ~/.zshify/user.zsh ~/.zshrc >~/.zshrc.tmp && mv ~/.zshrc.tmp ~/.zshrc
26
+ grep -vxFf ~/.zshify/user.zsh ~/.zprofile >~/.zprofile.tmp && mv ~/.zprofile.tmp ~/.zprofile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zshify",
3
- "version": "3.0.1",
3
+ "version": "5.0.0",
4
4
  "description": "A minimalistic touch to your prompt!",
5
5
  "bin": {
6
6
  "prompt": "bin/script.zsh"