From ec348f7d229d8996f1b20957ad3074614c0c59e6 Mon Sep 17 00:00:00 2001 From: surdeus Date: Thu, 15 Aug 2024 07:44:36 +0500 Subject: [PATCH] ... --- dot/file/profile | 16 ++++++++++------ nvim/lua/filetypes.lua | 6 ++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/dot/file/profile b/dot/file/profile index 0c6d77e..ca09065 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -73,11 +73,7 @@ if test "$OS" != "Windows_NT" ; then PATH="$HOME/exe:$HOME/.local/bin:$PATH" fi -# COMMON - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64" - export LANG="en_US.UTF-8" - -# Custom. +# Preconfig. export APP="$HOME/app" export BIN="$HOME/bin" export LOAD="$HOME/load" @@ -85,8 +81,11 @@ fi export PATH="$PATH:$BIN" export GIT="https://surdeus.su" export DEV="$HOME/dev" + export PATH="$PATH:$BIN" # CLI. + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64" + export LANG="en_US.UTF-8" export LESS="" export ENV="$HOME/.shrc" export PROMPT="; " @@ -131,6 +130,7 @@ fi export CLI_DMENU=`which-first fzf` export CLI_FILE_MANAGER=`which-first lf` +# GUI programs. export XCOMPOSER='river' export XTERMINAL='kitty -1 --instance-group "$DISPLAY"' export XINSIDE_TERMINAL='kitty -1 --instance-group "$DISPLAY"' @@ -198,7 +198,11 @@ manf() { echo No 'no $CLI_DMENU env' return 1 fi - man `man -k . | $CLI_DMENU -e -1 $(if test ! -z $@ ; then echo -- -q "$@" ; fi ) | awk '{print $1}'` + pagename=`man -k . | $CLI_DMENU -e -1 $(if test ! -z $@ ; then echo -- -q "$@" ; fi ) | awk '{print $1}'` + if test -z "$pagename" ; then + return 1 + fi + man "$pagename" } diff --git a/nvim/lua/filetypes.lua b/nvim/lua/filetypes.lua index dd12017..e7bdb6b 100644 --- a/nvim/lua/filetypes.lua +++ b/nvim/lua/filetypes.lua @@ -5,6 +5,12 @@ vim.filetype.add({ }, }) +vim.filetype.add({ + extension = { + xgo = "tengo", + }, +}) + createAutoCmd = vim.api.nvim_create_autocmd -- -- Basic thing for compiling languages.