aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-13 19:32:19 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-13 19:32:19 +0200
commit0459e513045d3de259c5f2068718f00252a8abab (patch)
treea2427a7b59f0b7d48dc30779027e429d816c1e89
parent69336f4aebe8fce9884dae2375eabc9948f43beb (diff)
downloaddotfiles-0459e513045d3de259c5f2068718f00252a8abab.tar.gz
dotfiles-0459e513045d3de259c5f2068718f00252a8abab.tar.bz2
dotfiles-0459e513045d3de259c5f2068718f00252a8abab.zip
Added mutt Send mailbox, zsh alias gpa doesn't push all branches, minishell_test configuration variables, pacman-url get url of package
-rw-r--r--.muttrc18
-rw-r--r--.zsh_aliases19
-rw-r--r--.zshrc3
3 files changed, 26 insertions, 14 deletions
diff --git a/.muttrc b/.muttrc
index 9393baf..4d5e9c1 100644
--- a/.muttrc
+++ b/.muttrc
@@ -18,7 +18,7 @@ set record = "+Send"
set trash = "+Trash"
set postponed = "+Drafts"
-mailboxes =INBOX =Sent =Trash =Drafts
+mailboxes =INBOX =Sent =Send =Trash =Drafts
set editor = 'vim'
set sort = 'reverse-date' # newest at the top
@@ -27,14 +27,14 @@ set date_format = "%d/%m %I:%M"
set index_format = "%2C %Z %d %-15.15F %s (%-4.4c)" # one line format in home
# from https://github.com/LukeSmithxyz/mutt-wizard/blob/master/share/mutt-wizard.muttrc
-set rfc2047_parameters = yes # decode non standard stuff
-set sleep_time = 0 # don't pause
-set markers = no # no '+' on line wrap
-set mark_old = no # don't mark mail as read if not seen
-set mime_forward = yes # attachements forwarded
-set wait_key = no # no press to continue...
-set forward_format = "Fwd: %s" # forward subject
-set forward_quote # include previous message in forward
+set rfc2047_parameters = yes # decode non standard stuff
+set sleep_time = 0 # don't pause
+set markers = no # no '+' on line wrap
+set mark_old = no # don't mark mail as read if not seen
+set mime_forward = yes # attachements forwarded
+set wait_key = no # no press to continue...
+set forward_format = "Fwd: %s" # forward subject
+set forward_quote # include previous message in forward
set sidebar_visible = yes
set sidebar_width = 20
diff --git a/.zsh_aliases b/.zsh_aliases
index 1410f07..1a0ffac 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -32,7 +32,7 @@ alias ta='tree -a'
alias t1='tree -L 1'
alias t2='tree -L 2'
alias t3='tree -L 3'
-alias treeI="tree -I '__pycache__' -I '*.o' -I vendor"
+# alias ti="tree | grep -v -E '*.pyc'"
# man
alias ma="man"
@@ -56,8 +56,8 @@ alias gd='git diff'
alias gds='git diff --staged'
alias gdt='git diff --stat'
alias gl='git pull'
-alias glg='git log --stat'
-alias glgg='git log --graph'
+alias glg='git log --abbrev-commit --stat'
+alias glgg='git log --abbrev-commit --graph'
alias glgo='git log --oneline --no-decorate'
alias gp='git push'
alias gcl='git clone --recurse-submodules'
@@ -67,9 +67,13 @@ alias gss='git status --short'
alias gco='git checkout'
alias gsta='git stash push'
alias gstp='git stash pop'
-alias gpa="git remote | xargs -L1 git push --all"
alias grv="git remote -v"
alias gra="git remote add"
+gpa() {
+ branch="$1"
+ [ -z "$1" ] && branch=master
+ git remote | xargs -I{} git push {} "$branch"
+}
# lpass (lastpass-cli)
alias lpassp='lpass show --password --clip' # put password in clipboard
@@ -118,9 +122,14 @@ wificonnect() {
# alias mutt='neomutt'
-alias ytdl='youtube-dl'
+alias ytdl='youtube-dl --output "%(title)s.%(ext)s"'
+alias ytdlp='youtube-dl -i --output "%(playlist_index)s-%(title)s.%(ext)s"'
alias ytdla='youtube-dl -i -x -f bestaudio/best --output "%(playlist_index)s-%(title)s.%(ext)s"'
alias qmvdest='qmv --format=do'
alias xclip='xclip -selection clipboard'
+
+pacman-url() {
+ pacman -Si "$1" | grep URL | tr -s ' ' | cut -d ' ' -f 3
+}
diff --git a/.zshrc b/.zshrc
index 8cf539c..cc6bd78 100644
--- a/.zshrc
+++ b/.zshrc
@@ -106,3 +106,6 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$DOTDIR/bin"
# export PATH="$PATH:$HOME/.vim/plugged/vim-superman/bin"
export GPG_TTY=$(tty) # fixing gpg fatal error about tty
+
+export MINISHELL_TEST_BONUS=yes
+export MINISHELL_TEST_PAGER=vim