diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-05-27 14:17:49 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-05-27 14:17:49 +0200 |
commit | f32fc8b9eb8303d1ca2e1cc17773bc44d38fff3d (patch) | |
tree | 6327f7c57886a63dcb711803b059bd4d9568cb0d /config | |
parent | 41712f9a97da7ee3c98ccbc6a17e119c09d0b7e2 (diff) |
updated
Diffstat (limited to 'config')
-rw-r--r-- | config/essentials/shell/aliases.sh | 3 | ||||
-rw-r--r-- | config/essentials/shell/functions.sh | 11 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 9 | ||||
-rw-r--r-- | config/home/.zshenv | 2 | ||||
-rw-r--r-- | config/wayland/gammastep/config.ini | 2 |
5 files changed, 7 insertions, 20 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index eb48416..ab17645 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -53,7 +53,8 @@ alias pf='profanity' alias f='fg' -alias gurk='pgrep gurk > /dev/null && printf "Already Running.\n" || gurk' +which gurk > /dev/null 2>&1 && + alias gurk='pgrep gurk > /dev/null && printf "Already Running.\n" || gurk' alias arduino-cli='arduino-cli --config-file $XDG_CONFIG_HOME/arduino15/arduino-cli.yaml' diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 1fd6e92..e0b148c 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -317,17 +317,10 @@ serve() { if [ "$1" ] then logn "Serving $1" - docker container run \ - --rm \ - --volume "$(readlink -f "$1")":/data \ - --publish 80:5000 sigoden/dufs /data + dufs "$1" else - logn "Receiving files.." - docker container run \ - --rm \ - --volume /tmp/data:/data \ - --publish 80:5000 sigoden/dufs /data --allow-upload + dufs /tmp/data --alow-upload fi } diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index ab66fcb..e2704e9 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -31,7 +31,7 @@ eval "$(zoxide init zsh)" ### Plugins [ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh" -plug "MichaelAquilina/zsh-you-should-use" +# plug "MichaelAquilina/zsh-you-should-use" plug "chivalryq/git-alias" plug "kutsan/zsh-system-clipboard" # plug "marlonrichert/zsh-autocomplete" @@ -110,13 +110,6 @@ bindkey -M menuselect '^xh' accept-and-hold # Hold bindkey -M menuselect '^xn' accept-and-infer-next-history # Next bindkey -M menuselect '^xu' undo # Undo -space-expand-alias() { - zle _expand_alias - zle self-insert -} -zle -N space-expand-alias -bindkey -M main ' ' space-expand-alias - ## window title hooks add-zsh-hook -Uz preexec () { print -n "\e]0;$1\a\033[0m"; } add-zsh-hook -Uz precmd set_wt (){ print -Pn "\e]0;%n@%m on %~\a"; } diff --git a/config/home/.zshenv b/config/home/.zshenv index 65fe153..c4b1e9d 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -64,7 +64,7 @@ export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS' --color=info:#b48ead,prompt:#bf6069,pointer:#b48dac --color=marker:#a3be8b,spinner:#ebcb8b,header:#a3be8b' -export LESS="-j 4 -i -r" +export LESS="-i -r" # Colored manpages export MANPAGER="less -R --use-color -Dd+r -Du+b" diff --git a/config/wayland/gammastep/config.ini b/config/wayland/gammastep/config.ini index 3a80417..e0699ac 100644 --- a/config/wayland/gammastep/config.ini +++ b/config/wayland/gammastep/config.ini @@ -1,7 +1,7 @@ [general] fade=0 location-provider=manual -adjustment-method=wayland +# adjustment-method=wayland gamma=0.8 temp-day=5700 temp-night=3600 |