diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-08-01 09:54:24 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-08-01 09:54:24 +0200 |
| commit | 0cc6f0cc54c70331aefa4fc32628c1722f5a38fd (patch) | |
| tree | d2dbb017d3cd3c233dad7b0bbc4671840944f662 /config/zsh | |
| parent | 25fc1f6c58c829f9897f3b5371bb465f3346ccb1 (diff) | |
| download | dotfiles-0cc6f0cc54c70331aefa4fc32628c1722f5a38fd.tar.gz dotfiles-0cc6f0cc54c70331aefa4fc32628c1722f5a38fd.tar.bz2 dotfiles-0cc6f0cc54c70331aefa4fc32628c1722f5a38fd.zip | |
Updated install script to install dictionaries locally instead of /usr/share/stardict
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/aliases.zsh | 7 | ||||
| -rwxr-xr-x | config/zsh/zprofile | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index ede9fda..6541211 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -158,3 +158,10 @@ alias zathura='zathura --fork' alias xset-reset='xset r rate 200 50' alias open='xdg-open' alias csi='rlwrap chicken-csi' + +sdcv() { + /usr/bin/sdcv -n --utf8-output --color "$@" 2>&1 | + fold -s -w "$(tput cols)" +} + +alias ffmpeg='ffmpeg -hide_banner' diff --git a/config/zsh/zprofile b/config/zsh/zprofile index 9a26525..ee2d4ab 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -38,6 +38,7 @@ export CARGO_HOME="$XDG_DATA_HOME/cargo" export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle export JULIA_DEPOT_PATH="$XDG_DATA_HOME/julia:$JULIA_DEPOT_PATH" export RLWRAP_HOME="$XDG_DATA_HOME/rlwrap" +export STARDICT_DATA_DIR="$XDG_DATA_HOME/stardict" # put dictionaries in a 'dic' subdirectory # cache export HISTFILE="$XDG_CACHE_HOME/zsh/history" export LESSHISTFILE='-' # no ~/.lesshst |
