-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
61 lines (46 loc) · 1.74 KB
/
.bash_aliases
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
58
59
alias v='vim '
alias r='ranger '
alias cl='clear '
alias em='emacs -nw '
alias md='mkdir -p '
#alias cd='z ' # for Zoxide
alias cd='cd_func() { builtin cd "$@" && ls; }; cd_func'
alias cdh='cd $HOME'
alias cdm='cd $HOME/magenta'
alias bashrc='vim $HOME/.bashrc; refreshenv'
alias bash_alias='vim $HOME/.bash_aliases; refreshenv'
alias i3conf='vim $HOME/.config/i3/config'
alias refreshenv='source $HOME/.bashrc; echo "Environment Refreshed!"'
alias gpt='chatblade --openai-api-key $OPENAI_API_KEY '
# custom user commands
alias fehd='feh --bg-fill $HOME/Pictures/backgrounds/ambient1.jpg'
copyclip() { ## STDOUT to clipboard
xclip -selection clipboard <<< "$(eval "$@")"
}
## Kazam Screenshotting - Kazam doesn't work well with the picom compositor, so installing from niknah/kazam might be helpful
alias kazam="bash $HOME/UserInstalledApps/kazam/bin/run_local_dev.sh"
# SSH
alias sshb='ssh -p '21796' [email protected]'
# Development Commands
## python
alias pv='python --version'
alias p='python '
## conda
alias ci='conda info'
alias cle='conda info --envs'
alias cce='conda create -n ' #inputs: name and python={version}
## Django
alias pmmm='python manage.py makemigrations'
alias pmm='python manage.py migrate'
alias pmr='python manage.py runserver'
## git
alias gi='git init'
alias ga='git add '
alias gaa='git add .'
alias gc='git commit -m '
alias gp='git push '
alias gico='git init; git add .; git commit ; git push;'
alias dotup='read -e updated_file;echo adding $(updated_file);yadm add ${updated_file}; yadm commit -m "updates"; yadm push;'
# Web
#alias getlinks='echo "curl -s URL | grep -Eo \'href="https?://[^"]+\' | sed \'s/href=\'//\'"'
alias music='mpv --playlist=$HOME/magenta/media/Music/playlist.m3u --shuffle > /dev/null 2>&1 &'