diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 13:21:50 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 13:21:50 +0100 |
| commit | bb72eb10b6c7148ad3107c50a4232dea080d1468 (patch) | |
| tree | 2b594e8332409497fec0261befa93895d48bad87 | |
| parent | bef00325cb5726f09d358344e7c23e3eab3d80ac (diff) | |
| download | dotfiles-bb72eb10b6c7148ad3107c50a4232dea080d1468.tar.gz dotfiles-bb72eb10b6c7148ad3107c50a4232dea080d1468.tar.bz2 dotfiles-bb72eb10b6c7148ad3107c50a4232dea080d1468.zip | |
Added travis CI, fixing shellcheck errors
| -rw-r--r-- | .travis.yml | 4 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | config/qutebrowser/config.py | 3 | ||||
| -rwxr-xr-x | config/x11/xinitrc | 2 | ||||
| -rwxr-xr-x | install | 11 | ||||
| -rwxr-xr-x | local/bin/repo-client | 3 | ||||
| -rw-r--r-- | music-dl.conf (renamed from local/bin/music-dl.conf) | 0 | ||||
| -rwxr-xr-x | test | 5 |
8 files changed, 21 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3aee491 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: shell + +script: + - ./test @@ -1,4 +1,4 @@ -# Dotfiles +# dotfiles [](https://travis-ci.com/cacharle/dotfiles) ## Installation diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 83d7ae7..d449658 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -31,7 +31,8 @@ c.url.searchengines = { 'gh': 'https://github.com/search?q={}', 'h': 'https://hoogle.haskell.org/?hoogle={}', 'cpp': 'http://cplusplus.com/search.do?q={}', - 'lar': 'https://www.larousse.fr/dictionnaires/francais/{}' + 'lar': 'https://www.larousse.fr/dictionnaires/francais/{}', + 'pypi': 'https://pypi.org/search/?q={}', } c.fonts.default_family = 'Fira Mono' diff --git a/config/x11/xinitrc b/config/x11/xinitrc index 2dbe77a..90d8515 100755 --- a/config/x11/xinitrc +++ b/config/x11/xinitrc @@ -7,7 +7,7 @@ redshift -c $XDG_CONFIG_HOME/redshift/redshift.conf & echo 'Starting dunst' dunst & xset r rate 200 50 -pulseaudio --daemonize +pulseaudio -D case "$(cat /etc/hostname)" in cacharle-main) @@ -16,8 +16,8 @@ link_home_files() { sed -e 'p' -e 's:^'"$rice_dir"':'"$dest_dir"':' | awk '{ if (NR % 2 == 1) { print "'"$(pwd)"'" "/" $0 } else print }' | xargs -L 2 > "$paths" - cat $paths | cut -d ' ' -f 2 | xargs -L 1 dirname | xargs -L 1 mkdir -pv - cat $paths | xargs -L 1 ln -svf + < "$paths" cut -d ' ' -f 2 | xargs -L 1 dirname | xargs -L 1 mkdir -pv + < "$paths" xargs -L 1 ln -svf } link_home_files 'config' "$XDG_CONFIG_HOME" @@ -53,9 +53,10 @@ update_zsh_plugin() { url="$1" path="$XDG_DATA_HOME/zsh/$(basename "$url")" - ([ ! -d "$path" ] || [ -z "$(ls -A "$path")" ]) && - git clone "$url" "$path" || - git -C "$path" pull + if [ ! -d "$path" ] || [ -z "$(ls -A "$path")" ] + then git clone "$url" "$path" + else git -C "$path" pull + fi } mkdir -p "$XDG_DATA_HOME/zsh" diff --git a/local/bin/repo-client b/local/bin/repo-client index 49049d8..de9b9f0 100755 --- a/local/bin/repo-client +++ b/local/bin/repo-client @@ -1,3 +1,4 @@ #!/bin/sh -ssh git@cacharle.xyz repo $* +# shellcheck disable=SC2029 +ssh git@cacharle.xyz repo "$@" diff --git a/local/bin/music-dl.conf b/music-dl.conf index e865370..e865370 100644 --- a/local/bin/music-dl.conf +++ b/music-dl.conf @@ -0,0 +1,5 @@ +#!/bin/sh + +shellcheck install +shellcheck test +shellcheck local/bin/* |
