|
@@ -96,7 +96,7 @@ alias ll='ls -alF'
|
|
|
alias la='ls -A'
|
|
|
alias l='ls -CF'
|
|
|
|
|
|
-#More aliases
|
|
|
+# Random tools
|
|
|
alias ~='cd ~'
|
|
|
alias etc='cd /etc'
|
|
|
alias i3c='vim ~/.config/i3/config'
|
|
@@ -107,6 +107,19 @@ alias sensorc='sensors | grep 'Core''
|
|
|
alias mvim='vim ~/work/2dTalro/main.lua'
|
|
|
alias vimc='vim ~/.vimrc'
|
|
|
alias py='python3'
|
|
|
+alias rmd='rm -R'
|
|
|
+
|
|
|
+# Folder aliases
|
|
|
+alias arp='cd /home/liam/work/Atherys/AtherysRoleplay/'
|
|
|
+alias ascript='cd /home/liam/work/Atherys/AtherysScript/'
|
|
|
+alias acode='cd /home/liam/work/Atherys/AtherysCode/'
|
|
|
+alias acore='cd /home/liam/work/Atherys/AtherysCore/'
|
|
|
+alias aquest='cd /home/liam/work/Atherys/AtherysQuests/'
|
|
|
+alias adocs='cd /home/liam/work/Atherys/AtherysDocs/'
|
|
|
+alias adoc='cd /home/liam/work/Atherys/AtherysDoclet/'
|
|
|
+alias alore='cd /home/liam/work/Atherys/AtherysLore/'
|
|
|
+alias anpc='cd /home/liam/work/Atherys/NPCs/'
|
|
|
+alias tal='cd /home/liam/work/Talro'
|
|
|
|
|
|
#Git aliases
|
|
|
alias gd='git diff'
|
|
@@ -114,6 +127,11 @@ alias ga='git add'
|
|
|
alias gst='git status'
|
|
|
alias grm='git rm'
|
|
|
|
|
|
+# fzf alias
|
|
|
+alias vom='vim $(fzf)'
|
|
|
+
|
|
|
+cheat() { curl cheat.sh/"$1"; }
|
|
|
+
|
|
|
function rex {
|
|
|
(cd ~/home-programs/REXPaint-v1.03/; wine REXPaint.exe)
|
|
|
}
|
|
@@ -138,6 +156,26 @@ function lastlog {
|
|
|
}
|
|
|
export -f lastlog
|
|
|
|
|
|
+TASKFILE="$HOME/.bashtask" #Hidden for neatness
|
|
|
+NC='\033[0m' # No Color
|
|
|
+LIGHTRED='\e[1;31m'
|
|
|
+LIGHTBLUE='\e[1;34m'
|
|
|
+if [ -f "$TASKFILE" ] && [ $(stat -c %s "$TASKFILE") != 0 ] #Check if file has content
|
|
|
+then
|
|
|
+ echo -e " [${LIGHTRED}Tasks${NC}] "
|
|
|
+ cat "$TASKFILE"
|
|
|
+ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' "-"
|
|
|
+else
|
|
|
+ echo "No tasks!"
|
|
|
+ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' "-"
|
|
|
+ touch "$TASKFILE"
|
|
|
+fi
|
|
|
+alias tasklist="bash"
|
|
|
+function taskadd() { echo "- $1" >> "$TASKFILE"; } #Example: taskadd "Go grocery shopping"
|
|
|
+function taskin() { sed -i "$1i- $2" "$TASKFILE"; } #Insert a task between items
|
|
|
+function taskrm() { sed -i "$1d" "$TASKFILE"; } #Example: taskrm 2 --> Removes second item in list
|
|
|
+function taskcl() { rm "$TASKFILE"; touch "$TASKFILE"; } #Delete and create a new taskfile
|
|
|
+
|
|
|
# Add an "alert" alias for long running commands. Use like so:
|
|
|
# sleep 10; alert
|
|
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
|
@@ -166,6 +204,18 @@ if [ -x /usr/bin/mint-fortune ]; then
|
|
|
/usr/bin/mint-fortune
|
|
|
fi
|
|
|
|
|
|
+if [[ "$(ping 8.8.8.8 -c1)" == "" ]]; then
|
|
|
+ nmcli dev wifi connect BELL653 password 16AFA94DAA9E
|
|
|
+fi
|
|
|
+
|
|
|
+#if [[ "$SSH_AUTH_SOCK" = "" ]]; then
|
|
|
+ # on the first round, we do this...
|
|
|
+# exec ssh-agent bash
|
|
|
+#else
|
|
|
+ # ... and when ssh-agent is running, we do this instead.
|
|
|
+# ssh-add
|
|
|
+#fi
|
|
|
+
|
|
|
# Coolness
|
|
|
export TERM=xterm-256color
|
|
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|