Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/dotfiles
Path: blob/master/files/aliases.bash
245 views
1
# Aliases
2
alias vim=nvim
3
alias py=python3
4
5
# For running scheme files outside of REPL
6
scm () {
7
if [[ -z $1 ]]; then
8
rlwrap -r -c -f "$HOME"/Desktop/Courses/SICP/scheme_completion.txt mit-scheme
9
else
10
mit-scheme --quiet < $1
11
fi
12
}
13
14
color () {
15
if [ "$#" -ne 1 ]; then
16
echo "Usage:
17
color <temperature>"
18
return
19
fi
20
21
gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature "$1"
22
}
23
24
# Colorized ls is best ls
25
# -l long format
26
# -F displays ('/', '*', '@', etc.) after certain paths
27
# -G colorized output (on darwin)
28
# -h use unit suffixes (Byte, Kilobyte, etc.)
29
# -a dirs with ('.')
30
ls --color=auto &> /dev/null && alias ls='ls -F --color=auto' || alias ls='ls -F'
31
32
# For pushd and popd
33
alias dirs="dirs -v"
34
35
# Colorized grep
36
alias grep='grep --color'
37
38
# More readable stat output
39
#alias stat="stat -x"
40
41
# Make bash speak in tongues, reverse it with "reset"
42
alias summon="echo -e '\x1b(0'"
43
44
# Make sure ssh works with tmux terminal
45
alias ssh="TERM=xterm-256color ssh"
46
47
alias note="vim '+call AppendToLog()'"
48
49
alias open="xdg-open"
50
51
alias ag="ag --path-to-ignore ~/.ignore"
52
53
alias less="/usr/share/nvim/runtime/macros/less.sh"
54
55