Add common fish
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
84c310dbd7
commit
014f60da35
@ -1,4 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- profile.zypper
|
- profile.zypper
|
||||||
|
- profile.fish
|
||||||
- profile.quilt
|
- profile.quilt
|
||||||
- profile.vim
|
- profile.vim
|
||||||
|
|||||||
3
salt/files/etc/fish/conf.d/greeting.fish
Normal file
3
salt/files/etc/fish/conf.d/greeting.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function fish_greeting
|
||||||
|
echo "<3"
|
||||||
|
end
|
||||||
7
salt/files/home/georg/.config/fish/config.fish
Normal file
7
salt/files/home/georg/.config/fish/config.fish
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
if status is-interactive
|
||||||
|
fish_add_path -aP ~/bin
|
||||||
|
|
||||||
|
set -x SSH_AUTH_SOCK "$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
||||||
|
set -x QT_STYLE_OVERRIDE Adwaita-Dark
|
||||||
|
end
|
||||||
23
salt/files/home/georg/.config/fish/functions/envsource.fish
Normal file
23
salt/files/home/georg/.config/fish/functions/envsource.fish
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
function envsource
|
||||||
|
if test "$argv[1]" = '-e'
|
||||||
|
set -f envfile "$argv[2]"
|
||||||
|
else
|
||||||
|
set -f envfile "$argv[1]"
|
||||||
|
end
|
||||||
|
if not test -f "$envfile"
|
||||||
|
echo "Unable to load $envfile"
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
while read line
|
||||||
|
if not string match -qr '^#|^$' "$line"
|
||||||
|
set item (string split -m 1 '=' $line)
|
||||||
|
if test "$argv[1]" = '-e'
|
||||||
|
set -e $item[1]
|
||||||
|
echo "Deleted key $item[1]"
|
||||||
|
else
|
||||||
|
set -gx $item[1] $item[2]
|
||||||
|
echo "Exported key $item[1]"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end < "$envfile"
|
||||||
|
end
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
function heroespass -w 'PASSWORD_STORE_DIR=~/Work/git/pass-opensuse pass' -d 'Shared pass store'
|
||||||
|
PASSWORD_STORE_GPG_OPTS='--trust-model always' PASSWORD_STORE_DIR=~/Work/git/pass-opensuse pass $argv
|
||||||
|
end
|
||||||
3
salt/files/home/georg/.config/fish/functions/up.fish
Normal file
3
salt/files/home/georg/.config/fish/functions/up.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function up
|
||||||
|
curl -sT $argv https://hugz.io/ | sed s/http/https/
|
||||||
|
end
|
||||||
18
salt/profile/fish.sls
Normal file
18
salt/profile/fish.sls
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
fish_package:
|
||||||
|
pkg.installed:
|
||||||
|
- name: fish
|
||||||
|
|
||||||
|
fish_files:
|
||||||
|
file.recurse:
|
||||||
|
- clean: true
|
||||||
|
- names:
|
||||||
|
- /etc/fish/conf.d:
|
||||||
|
- source: salt://files/etc/fish/conf.d
|
||||||
|
- /home/georg/.config/fish:
|
||||||
|
- source: salt://files/home/georg/.config/fish
|
||||||
|
- exclude_pat:
|
||||||
|
# empty
|
||||||
|
- completions
|
||||||
|
- conf.d
|
||||||
|
# I set exported variables in config.fish, this hence mostly contains universal default variables
|
||||||
|
- fish_variables
|
||||||
Loading…
x
Reference in New Issue
Block a user