summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/scripts/version.sh
blob: 3fb607171edf6b63542f1edcfd622ee1ea280c20 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

new_version=$1
filename=$(pwd)/fish_prompt.fish

sed -e "s/set -g SPACEFISH_VERSION .*/set -g SPACEFISH_VERSION $new_version/g" $filename > $filename.bak
mv -- $filename.bak $filename