aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zsh/function.zsh
blob: 20dc12ddc8343996c4ec92b6e49c885aca6e6c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
alias emc='emacsclient -c -a ""'
alias em='emacsclient -nw -a ""'
alias ff='firefox'
# alias lspasscp='lpass show -c --password $(lpass ls  | fzf | awk '{print $(NF)}' | sed 's/\\]//g')'

# fixing pdflatex
#alias pdflatex='/usr/bin/pdflatex'
#alias pdftex='/usr/bin/pdftex'

# fd - cd to selected directory
fdd() {
  local dir
  dir=$(find ${1:-.} -path '*/\.*' -prune \
                  -o -type d -print 2> /dev/null | fzf +m) &&
  cd "$dir"
}

wal-tile() {
    wal -n -i "$@"
    feh --bg-fill "$(< "${HOME}/.cache/wal/wal")"
    $HOME/.local/bin/betterlock -u "$(< "${HOME}/.cache/wal/wal")"
}

wal-tile-l() {
    wal -l -n -i "$@"
    feh --bg-fill "$(< "${HOME}/.cache/wal/wal")"
    $HOME/.local/bin/betterlock -u "$(< "${HOME}/.cache/wal/wal")"
}