-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shellrc
57 lines (40 loc) · 1.51 KB
/
.shellrc
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
51
52
53
54
55
56
57
#!/usr/bin/env sh
# IMPORTANT: script must be ran using source in your zshrc and bashrc: `source $HOME/.shellrc`
# This script is made to be compatible with zsh and bash
# This stores enviroment variables and aliases shared between shells
export SHELL="$(
(test -n "$ZSH_VERSION" && echo "zsh") ||
(test -n "$BASH_VERSION" && echo "bash") ||
echo ""
)"
# Set editor to use neovim
export EDITOR="nvim"
# Go bin path, should probably but this in a better place
export PATH="$PATH:$HOME/go/bin"
export CARGO_TARGET_DIR="$HOME/.cargo/target"
# Setup ssh-agent, keychain allows using the same ssh-agent accross different process (like multiple terminals)
eval $(keychain --eval --quiet)
# Hotspot throttle bypass, under "misc" in dotfiles repo
if [[ -f $HOME/pda-hotspot-proxy.sh ]]; then
source $HOME/pda-hotspot-proxy.sh
fi
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# After this point will only apply when in an interactive shell
# User configuration
test -n "$SHELL" && source <(starship init $SHELL --print-full-init) || echo "zsh or bash shell not detected"
# export MANPATH="/usr/local/man:$MANPATH"
# General
alias vim="nvim"
# Test new nvim config
alias nvim2="XDG_CONFIG_HOME=\"$HOME/.dotfiles/neovim-v2/.config\" nvim"
alias cat="bat"
alias ls="exa"
alias lls="exa -al"
#alias code="code-insiders"
alias marktext="flatpak run com.github.marktext.marktext $@"
# Git
alias gita="git add -A"
alias gitc="git commit -m $1"
alias gitp="git push"
alias gitac="git add -A && git commit -m $1"