Termux templating/packages

This commit is contained in:
2019-07-18 11:09:33 -04:00
parent b077d1c709
commit feabd4e98b
20 changed files with 197 additions and 34 deletions

View File

@@ -4,3 +4,4 @@ sourceDir = "~/linux-config"
gui = true
ext_kb = true
# ext_kb = false
linux_os = ""

View File

@@ -22,11 +22,20 @@ set -U mfs_dir "/home/kevin/coding/mf-site"
source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
{{ end }}
set -x PATH $PATH ~/scripts ~/scripts/colors ~/go/bin
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin
set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
{{ if eq .linux_os "termux" }}
# set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
set SPACEFISH_DIR_PREFIX ''
set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
set SPACEFISH_VI_MODE_INSERT ''
set SPACEFISH_VI_MODE_NORMAL '[n] '
set SPACEFISH_VI_MODE_SUFFIX ''
{{ end }}
set -x PASSWORD_STORE_CLIP_TIME 120
set -xU XSET_RATE 90
set -xU XSET_DELAY 200
@@ -53,8 +62,10 @@ bind \ce edit_command_buffer
bind \cr forward-word
chezmoi apply
~/scripts/sync-shortcuts
# source ~/.config/fish/key_abbr.fish > /dev/null
{{ if not (eq .linux_os "termux") }}
~/scripts/sync-shortcuts
{{ end }}
source ~/.config/fish/key_abbr.fish > /dev/null
set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
# set -U fish_fxn_dir "~/.config/fish/functions"
abbr ff "cd $fish_fxn_dir"

View File

@@ -46,7 +46,11 @@ function cd --description "Change directory"
set -g __fish_cd_direction prev
set -U last_dir $PWD
lsd -a
{{ if (not (eq .linux_os "termux")) }}
lsd -a
{{ else }}
ls -a
{{ end }}
end
return $cd_status

View File

@@ -1,5 +1,5 @@
function git-amend-push
git add -A .
git add -A
and git commit --amend --no-edit -S
and git push --force
end