TheRepoClub-DotFiles/localbin/.local/bin/repomacs
The-Repo-Club ba8724c248
Update
2023-08-02 09:34:21 +01:00

34 lines
612 B
Bash
Executable File

#!/usr/bin/env bash
#-*-coding:utf-8 -*-
#Auto updated?
# Yes
#File:
# repomacs
#Author:
# The-Repo-Club [wayne6324@gmail.com]
#Github:
# https://github.com/The-Repo-Club/
#
#Created:
# Wed 02 August 2023, 09:30:44 AM [GMT+1]
#Modified:
# Wed 02 August 2023, 09:33:35 AM [GMT+1]
#
#Description:
# run emacs in client mode
#
#Dependencies:
# emacs
#
if command -v emacsclient &>/dev/null; then
if ! pgrep -f "emacsclient" >/dev/null; then
(
emacsclient -c
) &
else
echo "repomacs already Running"
fi
else
echo "emacsclient can not be found"
fi