summaryrefslogtreecommitdiff
path: root/.bash_profile
blob: 7cd8fe4a111ea5a0efbdb847bae3bcf17a971f12 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# /etc/skel/.bash_profile 
 
# This file is sourced by bash for login shells.  The following line 
# runs your .bashrc and is recommended by the bash info pages. 
[[ -f ~/.bashrc ]] && . ~/.bashrc
 
EDITOR=vi
export EDITOR
 
source ~/perl5/perlbrew/etc/bashrc
export PATH="${HOME}/bin:${PATH}"
export GPG_TTY="$(tty)"
 
eval "$(keychain --eval --inherit any-once --agents ssh id_rsa id_ed25519)"
 
function e() {
    emacsclient -n "$@"
}
 
function se() {
    emacsclient -n "${@/#//sudo::}"
}
 
function pd() {
    if [[ $1 == -b ]]; then
        firefox "https://metacpan.org/pod/$2"
    else
        if type cpandoc &>/dev/null; then
            cpandoc "$@"
        else
            perldoc "$@"
        fi
    fi
}
 
function pm() {
    local fn
    local ex
    fn="$(pd -lm "$1")"
    ex=$?
    if [[ $ex != 0 ]]; then
        return $ex
    fi
    emacsclient -c -n "$fn"
}
 
export PERLDOC='-MPod::Text::Color::Delight'
 
fortune