Download Gedit For Mac



This post shows how to run gedit on Mac OS terminal. gedit is a text editor on Ubuntu, which can be started on Ubuntu terminal. To have the same function of running gedit as a command line in Mac OS, first need to download it from the following link:

Download the latest version of gedit for Windows. Efficient and free text editor. The official text editor of Gnome desktop environment is now ready to run. When I was using a Linux laptop as my dev machine, I used to do 'gedit xxxx' in a Terminal. Now I just switched to MacBook, I d like to do the same thing. I know that I can open gedit in a command line like 'open gedit', but can I add the file name? Otherwise I have to use vim. I am not a fan of vim.

https://wiki.gnome.org/Apps/Gedit
After downloading and installation, open the .bash_profile in your $HOME directory by running the following commands in the Mac terminal:
Once the .bash_profile is opened, add the following lines to the end:
Now save the .bash_profile and run the following command to update the environment var in the terminal:
Now enter the following command in the terminal to start gedit:
$./gedit
You may notice some errors message such as the ones below:
Referenced from: /usr/lib/libxslt.1.dylib
Expected in: /Applications/gedit.app/Contents/Resources/lib/libxml2.2.dylib

Trace/BPT trap: 5
This may be due to libxml2 or libxslt is not installed or the libxml2.2.dylib not in the lib folder of gedit, to install them, run the following commands:
$brew install libxml2
$cp /usr/local/Cellar/libxml2/2.9.1/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib
(Change the 2.9.1 to your version of libxml2). Rerun the following command:
$./gedit

There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and may not be up to date with the latest source release.

Homebrew

Install homebrew if you don't already have it, then:
$ brew install git

Download Gedit For Mac Versions

Xcode

Apple ships a binary package of Git with Xcode.

Download gedit for mac versions

Binary installer

Gedit Text Editor Download

Tim Harper provides an installer for Git. The latest version is 2.27.0, which was released 3 months ago, on 2020-07-22.

Building from Source

Download Gedit For Mac Virtualbox

If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.29.1.