diff options
| -rw-r--r-- | .emacs | 2 | ||||
| -rw-r--r-- | .emacs.d/org/config.org | 2 | ||||
| -rwxr-xr-x | .local/bin/install-port | 131 | 
3 files changed, 97 insertions, 38 deletions
| @@ -36,7 +36,7 @@   '(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95"))   '(objed-cursor-color "#ff5370")   '(package-selected-packages -   '(org-evil evil-vimish-fold cl-format crontab-mode vterm symon toc-org evil-org org-bullets yaml-mode twittering-mode helm-slime helm-w3m helm-mu htmlize babel org-pdftools shell-pop which-key golden-ratio elfeed-org elfeed dmenu mingus lua-mode dionysos helm-c-yasnippet helm-emms emms font-lock-cl restart-emacs w3m string-utils go-mode major-mode-icons dired-icon mode-icons evil-collection sed-mode zones kaolin-themes gruvbox-theme helm-themes yasnippet-classic-snippets yasnippet-snippets auto-yasnippet php-auto-yasnippets el-autoyas yasnippet cargo evil-ediff windresize helm-make spacemacs-theme centaur-tabs evil-mu4e evil-magit dashboard slime ssh sudo-ext dockerfile-mode docker frame-local ov dash-functional helm-addressbook org-mime flyspell-correct pdf-tools websocket request emojify-logos emojify oauth2 circe mu4e-alert web-mode doom-themes doom-modeline all-the-icons-dired all-the-icons-gnus all-the-icons html5-schema phps-mode org-babel-eval-in-repl rust-mode smart-mode-line-powerline-theme eshell-prompt-extras eshell-fixed-prompt pyenv-mode s realgud-lldb neotree ranger ## color-theme-modern auto-complete-c-headers command-log-mode auto-complete magit smart-tabs-mode airline-themes paredit autopair tabbar-ruler tabbar use-package-el-get color-theme-approximate diminish rainbow-delimiters color-identifiers-mode use-package helm evil-visual-mark-mode)) +   '(font-utils org-evil evil-vimish-fold cl-format crontab-mode vterm symon toc-org evil-org org-bullets yaml-mode twittering-mode helm-slime helm-w3m helm-mu htmlize babel org-pdftools shell-pop which-key golden-ratio elfeed-org elfeed dmenu mingus lua-mode dionysos helm-c-yasnippet helm-emms emms font-lock-cl restart-emacs w3m string-utils go-mode major-mode-icons dired-icon mode-icons evil-collection sed-mode zones kaolin-themes gruvbox-theme helm-themes yasnippet-classic-snippets yasnippet-snippets auto-yasnippet php-auto-yasnippets el-autoyas yasnippet cargo evil-ediff windresize helm-make spacemacs-theme centaur-tabs evil-mu4e evil-magit dashboard slime ssh sudo-ext dockerfile-mode docker frame-local ov dash-functional helm-addressbook org-mime flyspell-correct pdf-tools websocket request emojify-logos emojify oauth2 circe mu4e-alert web-mode doom-themes doom-modeline all-the-icons-dired all-the-icons-gnus all-the-icons html5-schema phps-mode org-babel-eval-in-repl rust-mode smart-mode-line-powerline-theme eshell-prompt-extras eshell-fixed-prompt pyenv-mode s realgud-lldb neotree ranger ## color-theme-modern auto-complete-c-headers command-log-mode auto-complete magit smart-tabs-mode airline-themes paredit autopair tabbar-ruler tabbar use-package-el-get color-theme-approximate diminish rainbow-delimiters color-identifiers-mode use-package helm evil-visual-mark-mode))   '(pdf-view-midnight-colors (cons "#EEFFFF" "#292D3E"))   '(pos-tip-background-color "#2E2A29")   '(pos-tip-foreground-color "#d4d4d6") diff --git a/.emacs.d/org/config.org b/.emacs.d/org/config.org index e61f103..0b5f9e5 100644 --- a/.emacs.d/org/config.org +++ b/.emacs.d/org/config.org @@ -9,7 +9,7 @@  (scroll-bar-mode -1)  (blink-cursor-mode 0) -(set-frame-font "mononoki Nerd Font:pixelsize=16" nil t) +(set-frame-font "mononoki Nerd Font:pixelsize=15" nil t)  (add-hook 'prog-mode-hook 'display-line-numbers-mode)  (add-hook 'text-mode-hook 'display-line-numbers-mode) diff --git a/.local/bin/install-port b/.local/bin/install-port index 1236287..ea8c1f1 100755 --- a/.local/bin/install-port +++ b/.local/bin/install-port @@ -6,14 +6,19 @@ use Term::ANSIColor;  sub upgrdports {  	my $upgrd_nbr_cmd = "/usr/sbin/pkg version -l '<' | /usr/bin/wc -l | /usr/bin/awk '{print \$1}'"; -	if (system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/sudo /usr/sbin/pkg update') != 0) { +	if (system( +			'/usr/local/bin/sudo', +			'/usr/sbin/pkg', +			'update' +		) != 0) {  		exit;  	} -	if (system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/sudo /usr/sbin/portsnap fetch update') != 0) { +	if (system( +			'/usr/local/bin/sudo', +			'/usr/sbin/portsnap', +			'fetch', +			'update' +		) != 0) {  		exit;  	}  	print colored("\nPorts to be updated: ", 'bold'); @@ -84,46 +89,100 @@ sub upgrdports {  sub configport {  	my $port = $_[0];  	my $port_basename = $_[1]; -	if (system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/sudo /usr/bin/make config-recursive && /usr/local/bin/sudo /usr/bin/make config-recursive && /usr/local/bin/sudo /usr/bin/make config-recursive') == 0) { -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/notify-send "Configuration success!" "Ports config - ' . $port . ' - configured successfully" >/dev/null 2>&1'); -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/espeak "Success: ' . $port_basename . ' configured successfully. Initiating compilation." & >/dev/null 2>&1'); +	if (system( +			'/usr/local/bin/sudo', +			'/usr/bin/make', +			'config-recursive') == 0) { +		if (system( +				'/usr/local/bin/sudo', +				'/usr/bin/make', +				'config-recursive') == 0) { +			if (system( +					'/usr/local/bin/sudo', +					'/usr/bin/make', +					'config-recursive') == 0) { +			} +			system( +				'/usr/local/bin/notify-send', +				'Configuration success!', +				'Ports config - ' . $port . ' - configured successfully', +				); +			my $pid; +			$pid = fork(); +			if (not $pid) { +				exec( +					'/usr/local/bin/espeak', +					'Success: ' . $port_basename . ' configured successfully. Initiating compilation.' +					); +				exit; +			} +		}  	}  	else { -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/notify-send -u critical -t 10000 "Configuration failure!" "Ports config - ' . $port . ' - failed to configure" >/dev/null 2>&1'); -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/espeak "Failure: failed to configure ' . $port_basename . '" & >/dev/null 2>&1'); +		system( +			'/usr/local/bin/notify-send', +			'-u', +			'critical', +			'-t', +			'10000', +			'Configuration failure!', +			'Ports config - ' . $port . ' - failed to configure' +			); +		my $pid; +		$pid = fork(); +		if (not $pid) { +			exec( +				'/usr/local/bin/espeak', +				'Failure: failed to configure ' . $port_basename +				); +			exit; +		}  	}  }  sub installport {  	my $port = $_[0];  	my $port_basename = $_[1]; -	if (system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/sudo /usr/bin/make install clean') == 0) { -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/notify-send "Compilation success!" "Ports - ' . $port . ' - installed successfully" >/dev/null 2>&1'); -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/espeak "Success: ' . $port_basename . ' installed successfully" & >/dev/null 2>&1'); +	if (system( +			'/usr/local/bin/sudo', +			'/usr/bin/make', +			'install', +			'clean' +		) == 0) { +		system( +			'/usr/local/bin/notify-send', +			'Compilation success!', +			'Ports - ' . $port . ' - installed successfully' +			); +		my $pid; +		$pid = fork(); +		if (not $pid) { +			exec( +				'/usr/local/bin/espeak', +				'Success: ' . $port_basename . ' installed successfully' +				); +			exit; +		}  	}  	else { -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/notify-send -u critical -t 10000 "Compilation failure!" "Ports - ' . $port . ' - failed to install" >/dev/null 2>&1'); -		system('/usr/local/bin/dash', -			   '-c', -			   '/usr/local/bin/espeak "Failure: failed to install ' . $port_basename . '" & >/dev/null 2>&1'); +		system( +			'/usr/local/bin/notify-send', +			'-u', +			'critical', +			'-t', +			'10000', +			'Compilation failure!', +			'Ports - ' . $port . ' - failed to install' +			); +		my $pid; +		$pid = fork(); +		if (not $pid) { +			exec( +				'/usr/local/bin/espeak', +				'Failure: failed to install ' . $port_basename +				); +			exit; +		}  	}  } | 
