aboutsummaryrefslogtreecommitdiff
path: root/zshenv
blob: 234da74b67d406a94b82126e3f257c01444c70f0 (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
# Important variables
export PATH=~/Scripts:~/bin/gradle/gradle-5.3.1/bin:~/bin/Sass/:~/.fzf/bin:~/.emacs.d/bin/:~/.cargo/bin:$PATH
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
export DOTNET_CLI_TELEMTRY_OPTOUT=1
alias yapf='python3 -m yapf'
alias clip="xclip -sel clip"
alias paste="xclip -o"
export force_color_prompt=yes

# Programming

SPC() {
    emacs $1 & disown > /dev/null;
}

gentemplate() {
    case $1 in
        'c') git clone https://github.com/Oreodave/CTemplate $2;;
        'cpp') git clone https://github.com/Oreodave/CPPTemplate $2;;
        'python') git clone https://github.com/Oreodave/PythonTemplate $2;;
        'node') git clone https://github.com/Oreodave/NodeTemplate $2;;
        *) return;;
    esac
    rm -rf $2/.git;
}

# Web Querying
search () {
    search_query=${1// /_}
    web "duckduckgo.com/$search_query"
}

web () {
    firefox $1 > /dev/null & disown
}

# OPAM configuration
. /home/oreodave/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true