diff options
author | EuAndreh <eu@euandre.org> | 2019-01-03 06:12:39 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-01-03 06:42:41 -0200 |
commit | b679e7d91f7af2d97bead966a17b715cdb020b1a (patch) | |
tree | 71926893088a93513971d950d5a19b012722fedf /bash/aliases.sh | |
parent | Add custom nu gitconfig options in nugitconfig.ini file. (diff) | |
download | dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.gz dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.xz |
Fix shellcheck ofsenses on bash scripts.
Diffstat (limited to '')
-rw-r--r-- | bash/aliases.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bash/aliases.sh b/bash/aliases.sh index 403709c..52d24b4 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -8,13 +8,14 @@ alias l="ls -lahp" alias ll="ls -lhp" alias yt-dl="yt_dl" isLinux && { - alias copy="tr -d '\n' | xclip -sel clip" + alias copy="tr -d '\\n' | xclip -sel clip" } isMac && { - alias copy="tr -d '\n' | pbcopy" + alias copy="tr -d '\\n' | pbcopy" } -alias trim="tr -d '\n'" -alias lower="tr [:upper:] [:lower:]" +alias trim="tr -d '\\n'" +alias lowercase="tr [:upper:] [:lower:]" +alias lc="tr [:upper:] [:lower:]" alias pia-vpn="sudo openvpn --config $DOTFILES/VPN/euandreh.ovpn" # Source: https://unix.stackexchange.com/questions/25327/watch-command-alias-expansion#25329 alias watch="watch --color " @@ -31,9 +32,9 @@ alias fim="play $DOTFILES/bash/Positive.ogg &> /dev/null" alias mux="tmuxinator" u() { - pushd ~/annex > /dev/null; + pushd ~/annex > /dev/null || exit 1; git annex info --fast | grep available; - popd > /dev/null; + popd > /dev/null || exit 1; } export -f u |